Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
2460abbc
Commit
2460abbc
authored
Aug 07, 2022
by
Sylvain Coulange
🌼
Browse files
desactiv agent
parent
fd22d0e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
colorapp/textPhonographer.py
View file @
2460abbc
...
...
@@ -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
colorapp/views.py
View file @
2460abbc
...
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment