Skip to content

Commit

Permalink
Set earliest start date to 1980-01-01 to avoid 500 error (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaboyd authored Mar 28, 2024
1 parent c279650 commit cec5379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_gitlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_start(entity):
if entity not in STATE or parse_datetime(STATE[entity]) < parse_datetime(CONFIG['start_date']):
dates_to_compare = [
parse_datetime(CONFIG['start_date']),
datetime.datetime(1973, 3, 4, 0, 0, 0, 0, tzutc())
datetime.datetime(1980, 1, 1, 0, 0, 0, 0, tzutc())
]
STATE[entity] = max(dates_to_compare).isoformat()
return STATE[entity]
Expand Down

0 comments on commit cec5379

Please sign in to comment.