220
221class DBHandler(object):
222 """
223 A simple singleton class that makes sure that only one connection to the database is ever initialised.224 """
225
226 def __new__(cls):
72 HTTPException: Incorrect username or password
73
74 Returns:
75 dict: A dictionary telling if the login attempt was successful, as well as an included 76 access token and token_type
77 """
78 user = select(u for u in User if u.username == form_data.username)[:]
Docstring line lengths are recommended to be no greater than 79 characters.