From dfa882f85282ca93718ecd7c0cb8ba3447807e36 Mon Sep 17 00:00:00 2001 From: AaronLieb Date: Sat, 31 Aug 2024 20:04:55 -0700 Subject: [PATCH] small bug fix --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index f749665..669d385 100644 --- a/database.py +++ b/database.py @@ -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)