mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update statistics_hook.py
This commit is contained in:
parent
ba16dc6f97
commit
55e29e0a4b
@ -102,7 +102,10 @@ def check_exists_key(group_id: str, plugin_name: str):
|
||||
for i in range(7):
|
||||
_prefix_count_dict['week_statistics'][group_id][str(i)] = {}
|
||||
_prefix_count_dict['week_statistics'][group_id][str(i)][plugin_name] = 0
|
||||
elif not _prefix_count_dict['week_statistics'][group_id]['0'].get(plugin_name):
|
||||
if not _prefix_count_dict['week_statistics'][group_id].get('0'):
|
||||
for i in range(7):
|
||||
_prefix_count_dict['week_statistics'][group_id][str(i)] = {}
|
||||
if not _prefix_count_dict['week_statistics'][group_id]['0'].get(plugin_name):
|
||||
for i in range(7):
|
||||
_prefix_count_dict['week_statistics'][group_id][str(i)][plugin_name] = 0
|
||||
if not _prefix_count_dict['month_statistics'].get(group_id):
|
||||
@ -110,7 +113,10 @@ def check_exists_key(group_id: str, plugin_name: str):
|
||||
for i in range(30):
|
||||
_prefix_count_dict['month_statistics'][group_id][str(i)] = {}
|
||||
_prefix_count_dict['month_statistics'][group_id][str(i)][plugin_name] = 0
|
||||
elif not _prefix_count_dict['month_statistics'][group_id]['0'].get(plugin_name):
|
||||
if not _prefix_count_dict['month_statistics'][group_id].get('0'):
|
||||
for i in range(30):
|
||||
_prefix_count_dict['month_statistics'][group_id][str(i)] = {}
|
||||
if not _prefix_count_dict['month_statistics'][group_id]['0'].get(plugin_name):
|
||||
for i in range(30):
|
||||
_prefix_count_dict['month_statistics'][group_id][str(i)][plugin_name] = 0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user