aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
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: