From 12e6f375a881b8e6d928431368d23b7f0fedc992 Mon Sep 17 00:00:00 2001 From: Breyten Ernsting Date: Wed, 18 Sep 2024 13:40:47 +0000 Subject: [PATCH] small fixes. --- manage.py | 3 ++- ocd_backend/utils/monitor.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manage.py b/manage.py index 9991385f..2787a3a1 100755 --- a/manage.py +++ b/manage.py @@ -539,7 +539,7 @@ def es_monthly_check(token): "assignees":[ "breyten"], "labels":["bug"]} - requests.post( + resp = requests.post( 'https://api.github.com/repos/openstate/open-raadsinformatie/issues', headers={ 'X-GitHub-Api-Version': '2022-11-28', @@ -548,6 +548,7 @@ def es_monthly_check(token): }, data=json.dumps(payload) ) + print(resp) # Register commands explicitly with groups, so we can easily use the docstring # wrapper diff --git a/ocd_backend/utils/monitor.py b/ocd_backend/utils/monitor.py index 873b5666..eff84b79 100644 --- a/ocd_backend/utils/monitor.py +++ b/ocd_backend/utils/monitor.py @@ -18,7 +18,7 @@ def get_recent_counts(): {'term': {"@type": "MediaObject"}}, {'range': { 'last_discussed_at': { - 'gte': 'now-3000d' + 'gte': 'now-30d' } }} ]