Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Klub Dev ENS
gestioCOF
Commits
f9958e4d
Commit
f9958e4d
authored
4 years ago
by
Ludovic Stephan
Browse files
Options
Download
Patches
Plain Diff
Fix : plus de warnings chelous pendant les tests
parent
2350109a
master
Aufinal/backbone_checkout
Aufinal/es6-js
Production
kerl/clickable_links
kerl/negatifs_handle_smtp_errors
luj/adhesions
mdebray/ajout_recherche_petits_cours
tbastian/kfet-rgpd
thubrecht/bds-tests
thubrecht/daphne
thubrecht/export-ventes
v0.11
v0.10
1 merge request
!495
Fix : plus de warnings chelous pendant les tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kfet/statistic.py
+1
-1
kfet/statistic.py
with
1 addition
and
1 deletion
+1
-1
kfet/statistic.py
+
1
−
1
View file @
f9958e4d
...
...
@@ -9,7 +9,7 @@ KFET_WAKES_UP_AT = time(5, 0) # La K-Fêt ouvre à 5h (UTC) du matin
def
kfet_day
(
year
,
month
,
day
,
start_at
=
KFET_WAKES_UP_AT
):
"""Étant donné une date, renvoie un objet `datetime`
correspondant au début du 'jour K-Fêt' correspondant."""
return
datetime
.
combine
(
date
(
year
,
month
,
day
),
start_at
)
return
datetime
.
combine
(
date
(
year
,
month
,
day
),
start_at
,
tzinfo
=
timezone
.
utc
)
def
to_kfet_day
(
dt
,
start_at
=
KFET_WAKES_UP_AT
):
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets