diff options
author | Alban Gruin | 2017-02-09 11:34:59 +0100 |
---|---|---|
committer | Alban Gruin | 2017-02-09 11:34:59 +0100 |
commit | 50f4e5d3277d611f3b9a662f436346e03f6e3996 (patch) | |
tree | 8daea60e78e1a0a252cf58b7fd2633355a48977e /utils.py | |
parent | 1fd2062ca3fe15bf3442114ca45127e26d9566b7 (diff) |
Plus de décalage artificiel à la semaine prochaine dans les vues
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |