|
@@ -104,7 +104,7 @@ def insert_review_into_database(unrecorded_reviews, loc):
|
|
|
|
|
|
def sync_all_review(loc_id):
|
|
|
'''
|
|
|
- Sync a location if any bad thing occur for example any network break.
|
|
|
+ Sync a location if any bad thing occur i.e. any network break.
|
|
|
:param: loc_id -> Location id of a particular location
|
|
|
:return: None -> It just update all reviews of this location and return nothing.
|
|
|
'''
|
|
@@ -163,6 +163,4 @@ def populate_reviews():
|
|
|
fetch_all_review(loc_id)
|
|
|
end = timezone.now()
|
|
|
elapsed = end - start
|
|
|
- print('-----------------------------------------------------------------------------------------')
|
|
|
print(f'Elapsed time: {elapsed.seconds//60} minutes and {elapsed.seconds % 60} secs.')
|
|
|
- print('-----------------------------------------------------------------------------------------')
|