bcv
This commit is contained in:
parent
5e63e2909a
commit
b76f1a339a
1 changed files with 2 additions and 1 deletions
|
@ -806,7 +806,8 @@ def submit_post(v, sub=None):
|
|||
if not sub: sub = request.values.get("sub")
|
||||
|
||||
if sub:
|
||||
g.db.query(Sub.name).filter_by(name=sub.strip().lower()).one_or_none()
|
||||
sub = g.db.query(Sub.name).filter_by(name=sub.strip().lower()).one_or_none()
|
||||
if not sub: abort(404)
|
||||
sub = sub[0]
|
||||
else: sub = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue