1.优化事件管理中,没有事件上报时报错的问题
This commit is contained in:
parent
3a09f1d9aa
commit
a09ec0b54d
@ -28,7 +28,10 @@ async def event_list(
|
||||
) -> schemas.Msg:
|
||||
"""事件列表"""
|
||||
#获取事件名
|
||||
event_list = await ckdb.distinct(game, 'event', '#event_name')
|
||||
try:
|
||||
event_list = await ckdb.distinct(game, 'event', '#event_name')
|
||||
except Exception as e:
|
||||
return schemas.Msg(code=-9, msg='查无数据', data='')
|
||||
#获取事件量
|
||||
event_count = await ckdb.yesterday_event_count(game)
|
||||
event_meta = await crud.event_mana.find_many(db, {'game':game}) or {}
|
||||
|
Loading…
Reference in New Issue
Block a user