Skip to content

Commit

Permalink
fix: determine current year automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Nov 4, 2023
1 parent 3279493 commit 76b797c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion echr/steps/cases_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import time
import urllib3
from concurrent.futures import ThreadPoolExecutor
import datetime

from echr.utils.logger import getlogger
from echr.utils.cli import TAB
Expand Down Expand Up @@ -67,7 +68,7 @@
' AND (kpdate>="YEAR-01-01T00:00:00.0Z" AND kpdate<="YEAR_1-01-01T00:00:00.0Z")' \
' AND ((organisations:"ECHR"))&select={}&sort=&start=0&length=10000&rankingModelId=11111111-0000-0000-0000-000000000000'.format(','.join(fields))
LENGTH = 10_000 # maximum number of items per request
YEARS = range(1959, 2023+1)
YEARS = range(1959, datetime.date.today().year+1)


def get_case_info(console, base_url, max_documents, path):
Expand Down

0 comments on commit 76b797c

Please sign in to comment.