Skip to content

Commit

Permalink
session syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Moore <[email protected]>
  • Loading branch information
brassy-endomorph and jeremywmoore authored Sep 19, 2024
1 parent 991b8dd commit c3f6497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hushline/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def register() -> Response | str | tuple[Response | str, int]:
400,
)

if db.session.query(db.exists(Username).where(Username._username == username)).scalar():
if db.session.scalar(db.exists(Username).where(Username._username == username).select()):
flash("💔 Username already taken.", "error")
return (
render_template(
Expand Down

0 comments on commit c3f6497

Please sign in to comment.