Update database_caller.py
This commit is contained in:
parent
440c92a4c5
commit
f331c70454
@ -1917,7 +1917,7 @@ if __name__ == '__main__':
|
|||||||
quotes_time = datetime.strptime(last_updates['quotes']['time'], "%d/%m/%Y %H:%M:%S")
|
quotes_time = datetime.strptime(last_updates['quotes']['time'], "%d/%m/%Y %H:%M:%S")
|
||||||
|
|
||||||
NY_time = datetime.now(NY_zone).replace(tzinfo=None)
|
NY_time = datetime.now(NY_zone).replace(tzinfo=None)
|
||||||
diff = (NY_time - jokes_time).total_seconds()/60 #minutes
|
diff = (NY_time - quotes_time).total_seconds()/60 #minutes
|
||||||
|
|
||||||
if last_updates['quotes']['force'] or diff >= update_frequencies['quotes']:# or msg == 'c':
|
if last_updates['quotes']['force'] or diff >= update_frequencies['quotes']:# or msg == 'c':
|
||||||
quotes_time = NY_time.strftime("%d/%m/%Y %H:%M:%S")
|
quotes_time = NY_time.strftime("%d/%m/%Y %H:%M:%S")
|
||||||
|
Loading…
Reference in New Issue
Block a user