From 2be6827b789a465eeab9e0682e90653082b7102b Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Wed, 8 May 2024 17:27:09 +0800 Subject: [PATCH] add bi --- bi/vas_yoy_flow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bi/vas_yoy_flow.py b/bi/vas_yoy_flow.py index baf8bf0..e224748 100644 --- a/bi/vas_yoy_flow.py +++ b/bi/vas_yoy_flow.py @@ -38,11 +38,10 @@ class S: return self.mysql_db_bi.exec(sql, (ptime, flow)) def proc(self): - time_now = int(time.time()) - zero_time = get_today_zero_time() - 86400 + zero_time = get_today_zero_time() last_time = self.get_last_ptime() - while last_time <= get_today_zero_time(): + while last_time <= int(time.time()): next_time = last_time + 300 flow = self.get_flow(zero_time, next_time)