From 1b838462f1410333595e876d19c3337e4fcbf044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 16 Aug 2020 18:48:05 +0200 Subject: [PATCH] commands: get changes for five minutes, to account for cron delays --- src/authentic2_gnm/management/commands/sync-cut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_gnm/management/commands/sync-cut.py b/src/authentic2_gnm/management/commands/sync-cut.py index 6df7eaf..71d94fd 100644 --- a/src/authentic2_gnm/management/commands/sync-cut.py +++ b/src/authentic2_gnm/management/commands/sync-cut.py @@ -56,7 +56,7 @@ class Command(BaseCommand): # update recently modified users url = settings.CUT_API_BASE_URL + 'users/?modified__gt=%s' % ( - datetime.datetime.now() - datetime.timedelta(seconds=120)).strftime('%Y-%m-%dT%H:%M:%S') + datetime.datetime.now() - datetime.timedelta(seconds=300)).strftime('%Y-%m-%dT%H:%M:%S') resp = requests.get(url, auth=settings.CUT_API_CREDENTIALS) resp.raise_for_status() for user_dict in resp.json()['results']: