~minus/stewdio-api

20bf1fc439c3f267296b631b32ff7f88ce6887ab — minus 6 years ago 2144dcf
Fix request favorite username case
1 files changed, 1 insertions(+), 0 deletions(-)

M stewdio/app.py
M stewdio/app.py => stewdio/app.py +1 -0
@@ 91,6 91,7 @@ def request(hash, session):
@with_db_session
@json_api
def request_favorite(session, username, num=1):
	username = username.lower()
	if "num" in flask.request.args:
		num = int(flask.request.args["num"])
	user = session.query(types.User).filter_by(name=username).one_or_none()