feat: add seeders and leechers column in search results

This commit is contained in:
2026-02-07 03:29:52 +01:00
parent c2b329aed4
commit 8e5e0425ef
4 changed files with 13 additions and 5 deletions
+2
View File
@@ -11,6 +11,8 @@ class AppState(QObject):
self.post_titles: List[str] = []
self.post_urls: List[str] = []
self.post_author: List[str] = []
self.post_seeders: List[str] = []
self.post_leechers: List[str] = []
self.version: str = "dev"
self._image_path: str = ""
self.ignore_updates: bool = False
+3 -1
View File
@@ -15,8 +15,10 @@ 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]
post_seeders = [post["seeders"] for post in data]
post_leechers = [post["leechers"] for post in data]
return post_titles, post_links, post_author
return post_titles, post_links, post_author, post_seeders, post_leechers