1
This commit is contained in:
parent
5aa182da11
commit
92a3e2664c
@ -113,7 +113,7 @@ class BehaviorAnalysis:
|
|||||||
# 兼容以前的
|
# 兼容以前的
|
||||||
e_days, s_days = self.event_view['recentDay'].split('-')
|
e_days, s_days = self.event_view['recentDay'].split('-')
|
||||||
|
|
||||||
self.event_view['endTime'] = arrow.get().shift(days=-int(e_days) + 1).strftime('%Y-%m-%d 23:59:59')
|
self.event_view['endTime'] = arrow.get().shift(days=-int(e_days)).strftime('%Y-%m-%d 23:59:59')
|
||||||
self.event_view['startTime'] = arrow.get().shift(days=-int(s_days)).strftime('%Y-%m-%d 00:00:00')
|
self.event_view['startTime'] = arrow.get().shift(days=-int(s_days)).strftime('%Y-%m-%d 00:00:00')
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,8 +41,10 @@ class XAnalysis:
|
|||||||
except:
|
except:
|
||||||
# 兼容以前的
|
# 兼容以前的
|
||||||
e_days, s_days = self.event_view['recentDay'].split('-')
|
e_days, s_days = self.event_view['recentDay'].split('-')
|
||||||
self.event_view['endTime'] = arrow.get().shift(days=-int(e_days)+1).strftime('%Y-%m-%d 23:59:59')
|
# self.event_view['endTime'] = arrow.get().shift(days=-int(e_days)+1).strftime('%Y-%m-%d 23:59:59')
|
||||||
self.event_view['startTime'] = arrow.get().shift(days=-int(s_days)+1).strftime('%Y-%m-%d 00:00:00')
|
# self.event_view['startTime'] = arrow.get().shift(days=-int(s_days)+1).strftime('%Y-%m-%d 00:00:00')
|
||||||
|
self.event_view['endTime'] = arrow.get().shift(days=-int(e_days)).strftime('%Y-%m-%d 23:59:59')
|
||||||
|
self.event_view['startTime'] = arrow.get().shift(days=-int(s_days)).strftime('%Y-%m-%d 00:00:00')
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user