Skip to content

Commit

Permalink
mark memes as published
Browse files Browse the repository at this point in the history
  • Loading branch information
ohld committed Jun 1, 2024
1 parent e73bbc3 commit 9d03424
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/flows/rewards/uploaded_memes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
from src.tgbot.handlers.treasury.payments import pay_if_not_paid_with_alert
from src.tgbot.logs import log

from src.crossposting.service import (
log_meme_sent,
)
from src.storage.service import update_meme

from src.crossposting.constants import Channel
from src.storage.constants import MemeStatus


@flow(name="Reward RU users for weekly top uploaded memes")
async def reward_ru_users_for_weekly_top_uploaded_memes():
Expand Down Expand Up @@ -93,6 +101,9 @@ async def reward_ru_users_for_weekly_top_uploaded_memes():
enternal_id=today,
)

await log_meme_sent(top_meme["id"], channel=Channel.TG_CHANNEL_RU)
await update_meme(top_meme["id"], status=MemeStatus.PUBLISHED)

# send message to tgchannelru

channel_text = f"""
Expand Down

0 comments on commit 9d03424

Please sign in to comment.