Commit 2460abbc authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

desactiv agent

parent fd22d0e7
......@@ -608,8 +608,8 @@ def addStat(app, module, ip, agent, country, lang):
'app': app,
'module': module,
'ip': ip,
'agent': agent,
'country': country,
'agent': str(agent),
'country': str(country),
'lang': lang
}
users_appstats.insert_one(newStat)
\ No newline at end of file
......@@ -349,7 +349,6 @@ def getLog(request):
return JsonResponse({"logs":rep})
def addStat(request):
if get_client_ip(request)!="127.0.0.1":
colis = json.loads(request.body)
app = colis["app"]
......
Supports Markdown
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