new field added

This commit is contained in:
Egor Matveev 2021-12-21 14:05:06 +03:00
parent 17573e1a76
commit 97a6fee997
1368 changed files with 988 additions and 3 deletions

View File

@ -30,6 +30,11 @@ class UserInfo(models.Model):
code = models.IntegerField(null=True) code = models.IntegerField(null=True)
verified = models.BooleanField(default=False) verified = models.BooleanField(default=False)
@property
def tasks_solved(self):
fltr = Task.objects.filter(solution__result=CONSTS["ok_status"], solution__user=self.user).distinct()
return len(fltr)
@property @property
def has_favourite_language(self): def has_favourite_language(self):
return self.favourite_language_id is not None return self.favourite_language_id is not None

View File

@ -1,7 +1,5 @@
from typing import Optional from typing import Optional
from django.utils import timezone
from Main.management.commands.bot import bot from Main.management.commands.bot import bot
from Main.models import Chat, Message from Main.models import Chat, Message
from Sprint.settings import CONSTS from Sprint.settings import CONSTS
@ -25,7 +23,6 @@ class ChatView(BaseView):
user=self.request.user, user=self.request.user,
chat=self.entities.chat, chat=self.entities.chat,
text=self.request.POST["text"], text=self.request.POST["text"],
time_sent=timezone.now(),
) )
if ( if (
self.entities.chat.user.userinfo.activity_status != CONSTS["online_status"] self.entities.chat.user.userinfo.activity_status != CONSTS["online_status"]

11
demo.py Normal file
View File

@ -0,0 +1,11 @@
from random import randrange
'''
x - y = 21
x + 6 = (y + 6) * 5
x = 21 + y
27 + y = 5y + 30
4y = -3
y = -3/4
'''

1
dev.sh Normal file
View File

@ -0,0 +1 @@
ssh root@77.246.159.65 --password k5lUgVb66FnV

1
postgres/PG_VERSION Normal file
View File

@ -0,0 +1 @@
13

BIN
postgres/base/1/112 Normal file

Binary file not shown.

BIN
postgres/base/1/113 Normal file

Binary file not shown.

BIN
postgres/base/1/1247 Normal file

Binary file not shown.

BIN
postgres/base/1/1247_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/1247_vm Normal file

Binary file not shown.

BIN
postgres/base/1/1249 Normal file

Binary file not shown.

BIN
postgres/base/1/1249_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/1249_vm Normal file

Binary file not shown.

BIN
postgres/base/1/1255 Normal file

Binary file not shown.

BIN
postgres/base/1/1255_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/1255_vm Normal file

Binary file not shown.

BIN
postgres/base/1/1259 Normal file

Binary file not shown.

BIN
postgres/base/1/1259_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/1259_vm Normal file

Binary file not shown.

BIN
postgres/base/1/13245 Normal file

Binary file not shown.

BIN
postgres/base/1/13245_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/13245_vm Normal file

Binary file not shown.

0
postgres/base/1/13247 Normal file
View File

BIN
postgres/base/1/13249 Normal file

Binary file not shown.

BIN
postgres/base/1/13250 Normal file

Binary file not shown.

BIN
postgres/base/1/13250_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/13250_vm Normal file

Binary file not shown.

0
postgres/base/1/13252 Normal file
View File

BIN
postgres/base/1/13254 Normal file

Binary file not shown.

BIN
postgres/base/1/13255 Normal file

Binary file not shown.

BIN
postgres/base/1/13255_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/13255_vm Normal file

Binary file not shown.

0
postgres/base/1/13257 Normal file
View File

BIN
postgres/base/1/13259 Normal file

Binary file not shown.

BIN
postgres/base/1/13260 Normal file

Binary file not shown.

BIN
postgres/base/1/13260_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/13260_vm Normal file

Binary file not shown.

0
postgres/base/1/13262 Normal file
View File

BIN
postgres/base/1/13264 Normal file

Binary file not shown.

0
postgres/base/1/1417 Normal file
View File

0
postgres/base/1/1418 Normal file
View File

BIN
postgres/base/1/174 Normal file

Binary file not shown.

BIN
postgres/base/1/175 Normal file

Binary file not shown.

BIN
postgres/base/1/2187 Normal file

Binary file not shown.

0
postgres/base/1/2224 Normal file
View File

0
postgres/base/1/2328 Normal file
View File

0
postgres/base/1/2336 Normal file
View File

BIN
postgres/base/1/2337 Normal file

Binary file not shown.

BIN
postgres/base/1/2579 Normal file

Binary file not shown.

BIN
postgres/base/1/2600 Normal file

Binary file not shown.

BIN
postgres/base/1/2600_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2600_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2601 Normal file

Binary file not shown.

BIN
postgres/base/1/2601_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2601_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2602 Normal file

Binary file not shown.

BIN
postgres/base/1/2602_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2602_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2603 Normal file

Binary file not shown.

BIN
postgres/base/1/2603_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2603_vm Normal file

Binary file not shown.

0
postgres/base/1/2604 Normal file
View File

BIN
postgres/base/1/2605 Normal file

Binary file not shown.

BIN
postgres/base/1/2605_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2605_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2606 Normal file

Binary file not shown.

BIN
postgres/base/1/2606_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2606_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2607 Normal file

Binary file not shown.

BIN
postgres/base/1/2607_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2607_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2608 Normal file

Binary file not shown.

BIN
postgres/base/1/2608_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2608_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2609 Normal file

Binary file not shown.

BIN
postgres/base/1/2609_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2609_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2610 Normal file

Binary file not shown.

BIN
postgres/base/1/2610_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2610_vm Normal file

Binary file not shown.

0
postgres/base/1/2611 Normal file
View File

BIN
postgres/base/1/2612 Normal file

Binary file not shown.

BIN
postgres/base/1/2612_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2612_vm Normal file

Binary file not shown.

0
postgres/base/1/2613 Normal file
View File

BIN
postgres/base/1/2615 Normal file

Binary file not shown.

BIN
postgres/base/1/2615_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2615_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2616 Normal file

Binary file not shown.

BIN
postgres/base/1/2616_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2616_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2617 Normal file

Binary file not shown.

BIN
postgres/base/1/2617_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2617_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2618 Normal file

Binary file not shown.

BIN
postgres/base/1/2618_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2618_vm Normal file

Binary file not shown.

BIN
postgres/base/1/2619 Normal file

Binary file not shown.

BIN
postgres/base/1/2619_fsm Normal file

Binary file not shown.

BIN
postgres/base/1/2619_vm Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More