Skip to content

Commit

Permalink
Consider 00:00:00 as 23:59:59 when guessing count (#260)
Browse files Browse the repository at this point in the history
Closes #250
  • Loading branch information
marioba authored Jul 5, 2022
1 parent 8c00c9a commit 058cfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comptages/core/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def guess_count(file_path):
id_installation__active=True,
id_class__name=header['CLASS'],
start_service_date__lte=header['STARTREC'],
end_service_date__gte=header['STOPREC'],
end_service_date__gte=header['STOPREC'] - timedelta(seconds=1), # To manage datetimes like 01.01.2022 00.00 that should be equal to 31.12.2021
)

if len(result) > 0:
Expand Down

0 comments on commit 058cfc9

Please sign in to comment.