forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-07-27 03:37:13 +03:00
parent f9b291572b
commit 194b0d94ef
1 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,8 @@ def add_options(self, body, v):
option_body += f'<div class="custom-control mt-2"><input type="{input_type}" class="custom-control-input" id="{kind}-{o.id}" name="option-{self.id}"'
if o.voted(v): option_body += " checked"
disabled = False
if v:
if kind == 'post':
sub = self.sub
@ -77,7 +79,6 @@ def add_options(self, body, v):
else:
sub = None
disabled = False
if sub in {'furry','vampire','racist','femboy','edgy'} and not v.house.lower().startswith(sub):
disabled = True
option_body += ' disabled '