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' } }} ]