From 8a60e722e5d727fa6a199d08d4398aa2f9bb96c8 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Wed, 8 May 2024 17:43:08 +0800 Subject: [PATCH] add bi --- bi/vas_yoy_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bi/vas_yoy_flow.py b/bi/vas_yoy_flow.py index e224748..af685e1 100644 --- a/bi/vas_yoy_flow.py +++ b/bi/vas_yoy_flow.py @@ -43,6 +43,8 @@ class S: while last_time <= int(time.time()): next_time = last_time + 300 + if next_time < int(time.time()): + return flow = self.get_flow(zero_time, next_time) dt = datetime.datetime.fromtimestamp(next_time)