feat: added one more achieve

This commit is contained in:
Андрей Сумин
2025-03-03 14:30:02 +03:00
parent 404ca1cc59
commit 7e25fe8e0d
4 changed files with 30 additions and 0 deletions
@@ -30,3 +30,13 @@ class Command(BaseCommand):
slug="welcome",
icon=welcome_icon,
)
if not Achievement.objects.filter(slug="start_competition").exists():
with open(f"{icons_dir}/start_competition.png", "rb") as f:
start_competition = File(f, name="start_competition.png")
Achievement.objects.get_or_create(
name="Да начнётся битва!",
description="Начните соревнование",
slug="start_competition",
icon=start_competition,
)