Skip to content

Commit

Permalink
added now
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed May 20, 2024
1 parent 0e64859 commit c9640e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/repositories/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ def _filter_valid_time(self, data: list[Detection]) -> list[Detection]:

for d in data:
if d.ts <= min_ts:
logger.info(f"invalid: {d.ts} <= {min_ts}, {d.reporter}")
logger.info(
f"invalid: {d.ts} <= {min_ts}, now={current_time}, {d.reporter}"
)
continue
if d.ts >= max_ts:
logger.info(f"invalid: {d.ts} >= {max_ts}, {d.reporter}")
logger.info(
f"invalid: {d.ts} >= {max_ts}, now={current_time}, {d.reporter}"
)
continue
output.append(d)

Expand Down

0 comments on commit c9640e3

Please sign in to comment.