Skip to content

Commit 835e874

Browse files
committed
修复统计状态码响应情况
1 parent c80503e commit 835e874

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.lprof/settings.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.10.6-f1c2dfe
1+
v1.10.6-c80503e

core/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def daily():
363363
def stats_pro(day: int):
364364
format_day = day == 30
365365
t = get_query_hour_tohour(0) - (day * 24)
366-
status_arr = list(status.value for status in Status)
366+
status_arr = list(f'sum({status.value})' for status in Status)
367367
status: defaultdict[str, int] = defaultdict(int)
368368
d_address: defaultdict[int, defaultdict[str, int]] = defaultdict(lambda: defaultdict(int))
369369
d_ip: dict[str, bool] = {}

0 commit comments

Comments
 (0)