Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLieb committed Sep 1, 2024
1 parent ec39581 commit dfa882f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_submission_status(self, user_hash: str, prompt_id: int) -> bool:
return pic is not None

def create_pic(self, url: str, prompt_id: int, username: str) -> Pic:
if self.get_pic(self.db, username, prompt_id) is not None:
if self.get_pic(username, prompt_id) is not None:
return None

picModel = Pic(url=url, prompt=prompt_id, user=username)
Expand Down

0 comments on commit dfa882f

Please sign in to comment.