aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorAlban Gruin2017-02-09 11:34:59 +0100
committerAlban Gruin2017-02-09 11:34:59 +0100
commit50f4e5d3277d611f3b9a662f436346e03f6e3996 (patch)
tree8daea60e78e1a0a252cf58b7fd2633355a48977e /utils.py
parent1fd2062ca3fe15bf3442114ca45127e26d9566b7 (diff)
Plus de décalage artificiel à la semaine prochaine dans les vues
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 1a177b4..8b5325c 100644
--- a/utils.py
+++ b/utils.py
@@ -2,6 +2,9 @@ from django.utils import timezone
import datetime
+def get_current_week():
+ return timezone.now().isocalendar()[:2]
+
def get_current_or_next_week():
year, week, day = timezone.now().isocalendar()
if day >= 6: