Skip to content

Commit

Permalink
Small fix. See #452
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jan 29, 2024
1 parent d17abbf commit f3ecb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocd_backend/extractors/ibabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def run(self):
report_dict['datum'] = None

# datum can sometimes be 'V' -- unsure what it means
if report_dict['datum'] and isinstance(report_dict['datum'], str) and report_dict['datum'] != 'V' and not start_date < iso8601.parse_date(report_dict['datum']).replace(tzinfo=None) < end_date:
if report_dict['datum'] and isinstance(report_dict['datum'], str) and (report_dict['datum'] not in ['V', 'R']) and not start_date < iso8601.parse_date(report_dict['datum']).replace(tzinfo=None) < end_date:
# Skip report if date is outside date interval
continue

Expand Down

0 comments on commit f3ecb0a

Please sign in to comment.