From c71638664e3293657545ca7b0e149f2d08c5fb27 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Wed, 8 Sep 2021 11:15:07 +0300 Subject: [PATCH] deploy --- Main/models/userinfo.py | 2 +- Sprint/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Main/models/userinfo.py b/Main/models/userinfo.py index 921ec99..ffdfdec 100644 --- a/Main/models/userinfo.py +++ b/Main/models/userinfo.py @@ -39,7 +39,7 @@ class UserInfo(models.Model): tasks = [] for task in Task.objects.all(): self._append_task(task, tasks) - return tasks + return sorted(tasks, key=lambda x: x.time_estimation) @property def place(self): diff --git a/Sprint/settings.py b/Sprint/settings.py index a2d2129..38ef511 100644 --- a/Sprint/settings.py +++ b/Sprint/settings.py @@ -22,7 +22,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "-w#*mn6*fa8a=(-c0@klx&$vl%hpiy&l(u*3%0a#2)wdt##(z2" -DEPLOY = False +DEPLOY = True # SECURITY WARNING: don't run with debug turned on in production! DEBUG = not DEPLOY