From 58e6e76bc53f8d82615b9614fe31ec5a82487dd5 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 20 May 2012 16:12:34 +0100 Subject: [PATCH] Use now() instead of datetime.now() --- app/eve_api/tasks/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/eve_api/tasks/account.py b/app/eve_api/tasks/account.py index b156718..384fd60 100644 --- a/app/eve_api/tasks/account.py +++ b/app/eve_api/tasks/account.py @@ -36,7 +36,7 @@ def queue_apikey_updates(update_delay=86400, batch_size=50): # Update all the eve accounts and related corps delta = timedelta(seconds=update_delay) - log.info("Updating APIs older than %s" % (datetime.now() - delta)) + log.info("Updating APIs older than %s" % (now() - delta)) if gargoyle.is_active('eve-cak'): accounts = EVEAccount.objects.filter(api_last_updated__lt=(now() - delta)).exclude(api_status__in=[API_STATUS_ACC_EXPIRED, API_STATUS_KEY_EXPIRED, API_STATUS_AUTH_ERROR]).order_by('api_last_updated')[:batch_size]