add gigapin award

master
Aevann 2024-10-21 20:17:14 +03:00
parent 9d825cc376
commit 5ea8c48be8
2 changed files with 3 additions and 3 deletions

View File

@ -624,12 +624,12 @@ class User(Base):
@property
@lazy
def awards_content_effect(self):
return [x for x in self.user_awards if x['cosmetic'] or x['kind'] in {"pin", "unpin"}]
return [x for x in self.user_awards if x['cosmetic'] or x['kind'] in {"pin", "gigapin", "unpin"}]
@property
@lazy
def awards_author_effect(self):
return [x for x in self.user_awards if not x['cosmetic'] and x['kind'] not in {"pin", "unpin"}]
return [x for x in self.user_awards if not x['cosmetic'] and x['kind'] not in {"pin", "gigapin", "unpin"}]
@property
@lazy

View File

@ -791,7 +791,7 @@ AWARDS = {
"description": "Pins a post for 12 hour or a comment for 72 hours.",
"icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-danger",
"price": 14000,
"price": 13500,
"deflectable": False,
"cosmetic": False,
"ghost": True,