refactor: change init_uztracker to synchronous and update data formatting for m0nkrus

This commit is contained in:
Vxrtrauter
2026-02-09 04:36:28 +01:00
parent adc9f6f6d4
commit 9265a9cd1c
3 changed files with 19 additions and 7 deletions
+11 -1
View File
@@ -11,7 +11,7 @@ def split_data(data):
return count, posts, query, success, cached
def format_data(data):
def format_data(data):
post_author = [post["author"] for post in data]
post_titles = [post["title"] for post in data]
post_links = [post["url"] for post in data]
@@ -20,6 +20,16 @@ def format_data(data):
return post_titles, post_links, post_author, post_seeders, post_leechers
def format_data_m0nkrus(data):
post_author = [post["author"] for post in data]
post_titles = [post["title"] for post in data]
post_links = [post["url"] for post in data]
return post_titles, post_links, post_author
# https://open.spotify.com/track/70vjXI7oBou5buTtgiJeRW?si=25640cc4243c4bf3