now activities update
fixed a dumb mistake lol
@@ -19,15 +19,15 @@ class UserParse(object):
#now start the processing
if len(activeCounter) > 0:
importantdata["status"] = activeCounter["status"]
- importantdata["activities"] = {i["type"] for i in activeCounter["activities"]}
+ importantdata["activities"] = {i["type"]:i for i in activeCounter["activities"]}
return importantdata
elif len(allCounter) > 0:
importantdata["status"] = allCounter["status"]
- importantdata["activities"] = {j["type"] for j in allCounter["activities"]}
+ importantdata["activities"] = {j["type"]:j for j in allCounter["activities"]}
return importantdata
elif len(sessionidCounter) > 0:
importantdata["status"] = sessionidCounter["status"]
- importantdata["activities"] = {k["type"] for k in sessionidCounter["activities"]}
+ importantdata["activities"] = {k["type"]:k for k in sessionidCounter["activities"]}
return importantdata
else:
return {}
