This commit is contained in:
Egor Matveev 2021-09-08 11:15:07 +03:00
parent ccdd9e7b8c
commit c71638664e
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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