Commit 4ea3c1df authored by zhengjinlei's avatar zhengjinlei

增加导出按钮

parent dbce6d71
...@@ -87,7 +87,7 @@ def seat_stat(start_date=None, end_date=None): ...@@ -87,7 +87,7 @@ def seat_stat(start_date=None, end_date=None):
if check['agentName'] in seat_dict.keys(): if check['agentName'] in seat_dict.keys():
seat = seat_dict.get(check['agentName']) seat = seat_dict.get(check['agentName'])
seat['total_session'] += 1 seat['total_session'] += 1
seat['remainTime'] = check['remainTime'] seat['remainTime'] += check['remainTime']
seat['validate_session'] += 1 if check['violationRuleCount'] > 0 else 0 seat['validate_session'] += 1 if check['violationRuleCount'] > 0 else 0
else: else:
seat_dict[check['agentName']] = {'create_date': start_date, 'agentName': check['agentName'], seat_dict[check['agentName']] = {'create_date': start_date, 'agentName': check['agentName'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment