Skip to content

Commit

Permalink
Fix bug related to double message after sending image
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLieb committed Oct 11, 2024
1 parent 2fb9b1d commit c4dd58c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def get_winner_by_prompt(self, prompt_id: int) -> Pic | None:

def get_submission_status(self, user_hash: str, prompt_id: int) -> bool:
user = self.get_user_by_hash(user_hash)
print(user_hash)
if user is None:
return False
pic = self.get_pic(str(user.username), prompt_id)
Expand Down
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ async def receive_message(
and MediaUrl0 is not None
):
twilio_client.handle_image(From, MediaUrl0)
if MediaContentType0 is not None and "image" in MediaContentType0:
assert MediaUrl0 is not None
twilio_client.handle_image(From, MediaUrl0)
elif Body is not None:
twilio_client.handle_message(From, Body)

Expand Down

0 comments on commit c4dd58c

Please sign in to comment.