Peggun / osd

Open-Source Data for everyone to use freely. Built upon the Flask framework in Python
Apache License 2.0
1 stars 0 forks source link

InvalidRequestError: Entity namespace for "users" has no property "username" #49

Open sentry-io[bot] opened 2 months ago

sentry-io[bot] commented 2 months ago

Sentry Issue: OSD-APP-1F

AttributeError: type object 'User' has no attribute 'username'
  File "sqlalchemy\sql\base.py", line 2181, in _entity_namespace_key
    return getattr(ns, key)  # type: ignore

InvalidRequestError: Entity namespace for "users" has no property "username"
(2 additional frame(s) were not displayed)
...
  File "C:\Users\prest\OneDrive - John Septimus Roe Anglican Community School\Documents\Software Engineering\Python\WorkSpace\osd\src\app\website\routes\sign_up_page\sign_up_page.py", line 29, in signup
    if User.query.filter_by(username=username).first():

This issue was automatically created by Sentry via Send a notification for new issues