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 1, 2024
1 parent 124c6de commit 7d97975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flows/rewards/uploaded_memes.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def reward_ru_users_for_weekly_top_uploaded_memes():
📥 Загружено мемов: {nuploaded}
👤 Пользователями: {nusers}
👁️ Просмотры: {total_views}
👍 Доля лайков: {(likes * 100. / (likes + dislikes)).round()}%
👍 Доля лайков: {round(likes * 100. / (likes + dislikes))}%
"""

m = await bot.send_media_group(
Expand All @@ -133,7 +133,7 @@ async def reward_ru_users_for_weekly_top_uploaded_memes():
user_uploaded_memes = [m for m in uploaded_memes if m["author_id"] == author_id]
likes = sum(m["nlikes"] for m in user_uploaded_memes)
dislikes = sum(m["ndislikes"] for m in user_uploaded_memes)
like_prc = (likes * 100.0 / (likes + dislikes)).round()
like_prc = round(likes * 100.0 / (likes + dislikes))

user_text = f"""
Стата по загруженным тобой мемам:
Expand Down

0 comments on commit 7d97975

Please sign in to comment.