Update database_caller.py

This commit is contained in:
Justin 2023-09-23 17:48:30 +08:00 committed by GitHub
parent 440c92a4c5
commit f331c70454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1917,7 +1917,7 @@ if __name__ == '__main__':
quotes_time = datetime.strptime(last_updates['quotes']['time'], "%d/%m/%Y %H:%M:%S")
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':
quotes_time = NY_time.strftime("%d/%m/%Y %H:%M:%S")