Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Corecting notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
kotorkovsciy committed Jul 16, 2022
1 parent af6a359 commit 43d521b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async def scheduled(self):
if await sql.newsJokesExists():
for i in range(await sql.quantityUsers()):
row = await sql.newsJoke()
if row["user_id"] == i+1:
if row["user_id"] != i+1:
userId = await sql.infoId(i+1)
await bot.send_message(userId, f"Появилась новая шутка\n\n{row['joke']}\n\nАвтор: {row['author']}")
await sql.deleteOldJoke()

0 comments on commit 43d521b

Please sign in to comment.