diff --git a/main.py b/main.py index 85ff721..d6f8bd8 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,7 @@ def get_feed_of_user(user_handle: str, session: SessionDep): return HTTPException(status_code=400, detail="The handle is invalid.") # check if there is the user in blacklist - black_user = session.exec(select(Blacklist).where(Blacklist.handle == user_handle)).first + black_user = session.exec(select(Blacklist).where(Blacklist.handle == user_handle)).first() if black_user: return HTTPException(status_code=401, detail="The user is in blacklist.")