添加多除数为0的处理
This commit is contained in:
parent
9f3b77bc9e
commit
695cd65cb2
@ -94,17 +94,16 @@ class Sys_statisticsService:
|
||||
|
||||
total = await Sys_statisticsDao.get_total_statistics_data(query_db)
|
||||
|
||||
total = dict(total)
|
||||
|
||||
# if data_1 is None:
|
||||
# data_1 = {
|
||||
# "llm_call": 0,
|
||||
# "access_control_count": 0,
|
||||
# "visitor_guide": 0,
|
||||
# "exhibition_explanation": 0
|
||||
# }
|
||||
# else:
|
||||
# data_1 =dict(data_1)
|
||||
if total is None:
|
||||
total = {
|
||||
"llm_call": 1,
|
||||
"access_control_count": 1,
|
||||
"visitor_guide": 1,
|
||||
"exhibition_explanation": 1
|
||||
}
|
||||
else:
|
||||
total = dict(total)
|
||||
|
||||
if data_2 is None:
|
||||
data_2 = {
|
||||
"llm_call": 0,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user