Skip to content

Commit

Permalink
Update uploaded_memes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ohld committed Jun 7, 2024
1 parent 20adc1b commit 5b53e41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/flows/rewards/uploaded_memes.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ async def reward_ru_users_for_weekly_top_uploaded_memes():
enternal_id=today,
)

await log_meme_sent(top_meme["meme_id"], channel=Channel.TG_CHANNEL_RU)
await update_meme(top_meme["meme_id"], status=MemeStatus.PUBLISHED)
if top_meme["status"] != MemeStatus.PUBLISHED:
await update_meme(top_meme["meme_id"], status=MemeStatus.PUBLISHED)
await log_meme_sent(top_meme["meme_id"], channel=Channel.TG_CHANNEL_RU)

# send message to tgchannelru

Expand Down

0 comments on commit 5b53e41

Please sign in to comment.