Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Apr 19, 2024
1 parent 95d1b2c commit f22cb74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/modules/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def getUserId(title):
return next(
(
(True, user_id)
for user_id, feed in list(rss_dict.items())
for user_id, feed in rss_dict.items()
if feed["title"] == title
),
(False, False),
Expand Down Expand Up @@ -259,9 +259,9 @@ async def rssList(query, start, all_users=False):
if all_users:
list_feed = f"<b>All subscriptions | Page: {int(start / 5)} </b>"
async with rss_dict_lock:
keysCount = sum(len(v.keys()) for v in list(rss_dict.values()))
keysCount = sum(len(v.keys()) for v in rss_dict.values())
index = 0
for titles in list(rss_dict.values()):
for titles in rss_dict.values():
for index, (title, data) in enumerate(
list(titles.items())[start : 5 + start]
):
Expand Down Expand Up @@ -647,7 +647,7 @@ async def rssMonitor():
return
all_paused = True
for user, items in list(rss_dict.items()):
for title, data in list(items.items()):
for title, data in items.items():
try:
if data["paused"]:
continue
Expand Down

0 comments on commit f22cb74

Please sign in to comment.