Skip to content

Commit

Permalink
small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Sep 18, 2024
1 parent 18a3ab3 commit 12e6f37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ocd_backend/utils/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_recent_counts():
{'term': {"@type": "MediaObject"}},
{'range': {
'last_discussed_at': {
'gte': 'now-3000d'
'gte': 'now-30d'
}
}}
]
Expand Down

0 comments on commit 12e6f37

Please sign in to comment.