From c9640e332d03834a9febba2081dca8a54286ff75 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Mon, 20 May 2024 21:18:52 +0200 Subject: [PATCH] added now --- src/app/repositories/report.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/repositories/report.py b/src/app/repositories/report.py index bc805ef..1b2a2f3 100644 --- a/src/app/repositories/report.py +++ b/src/app/repositories/report.py @@ -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)