This commit is contained in:
Aevann1 2021-11-26 21:31:36 +02:00
parent 1b49a03cea
commit e3137813c9

View file

@ -34,7 +34,7 @@ def toggle_club(pid, v):
post.club = not post.club post.club = not post.club
g.db.add(post) g.db.add(post)
W g.db.commit() g.db.commit()
if post.club: return {"message": "Post has been marked as club-only!"} if post.club: return {"message": "Post has been marked as club-only!"}
else: return {"message": "Post has been unmarked as club-only!"} else: return {"message": "Post has been unmarked as club-only!"}