Skip to content
Snippets Groups Projects
Commit 5f13c22b authored by Quentin Bramas's avatar Quentin Bramas
Browse files

export results as json

parent 3065df03
Branches
Tags
No related merge requests found
......@@ -39,6 +39,7 @@ python admin.py list-users --url-to <KEY>
import os, sys
from datetime import datetime
import json
try:
import socketio
......@@ -162,7 +163,7 @@ def sudo_result(data):
print(','.join([
user_name,
datetime.fromtimestamp(data['userInfo'][user_name]['startOfflineTime'] // 1_000).isoformat(),
str(data['answers'][str(user_id)])
json.dumps(data['answers'][str(user_id)])
]))
else:
print(data)
......
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