fix chud badge not being given

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-07 07:43:25 +02:00
parent 5be668a049
commit 99a44f461c
1 changed files with 2 additions and 0 deletions

View File

@ -1042,6 +1042,8 @@ def agendaposter(user_id, v):
)
g.db.add(ma)
badge_grant(user=user, badge_id=28)
if 'reason' in request.values:
if request.values["reason"].startswith("/post/"):
try: post = int(request.values["reason"].split("/post/")[1].split(None, 1)[0])