Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
a5c95651
Commit
a5c95651
authored
Mar 30, 2021
by
Sylvain Coulange
Browse files
debut graph traces par jour
parent
b3ea46a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
users/views.py
View file @
a5c95651
...
...
@@ -291,7 +291,8 @@ def userInfo(request, username):
lastTrace
=
traces
[
nbTraces
-
1
].
date
if
nbTraces
>
0
else
0
daylist
=
np
.
arange
(
'2021-02-15'
,
np
.
datetime64
(
'today'
,
'D'
),
dtype
=
'datetime64[D]'
)
daylist
=
np
.
arange
(
'2021-02-15'
,
np
.
datetime64
(
'today'
,
'D'
)
+
np
.
timedelta64
(
1
,
'D'
),
dtype
=
'datetime64[D]'
)
print
(
daylist
)
day2traces
=
{}
# Initialisation liste vide
for
day
in
daylist
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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