From 0ab56c40ce4165030c48cf05cea3ccdb94cad686 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Fri, 3 Jan 2025 00:51:13 +0100 Subject: [PATCH] bug fix --- src/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index d741f11..560bccb 100644 --- a/src/main.py +++ b/src/main.py @@ -128,13 +128,13 @@ async def process_msg_v2(msg: ReportInQV2) -> StgReportCreate: if msg.ts > 10**10: msg.ts = msg.ts / 1000 - if msg.ts > 1735736400: - logger.warning(f"{msg.ts=} > 2025-01-01, {msg=}") - return None + # if msg.ts > 1735736400: + # logger.warning(f"{msg.ts=} > 2025-01-01, {msg=}") + # return None - if msg.ts < 1577883600: - logger.warning(f"{msg.ts=} < 2020-01-01, {msg=}") - return None + # if msg.ts < 1577883600: + # logger.warning(f"{msg.ts=} < 2020-01-01, {msg=}") + # return None gmt = time.gmtime(msg.ts) human_time = time.strftime("%Y-%m-%d %H:%M:%S", gmt)