Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Jan 2, 2025
1 parent cffcbb7 commit 0ab56c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ab56c4

Please sign in to comment.