diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-04-02 21:33:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-04-02 21:33:48 +0100 |
commit | bde1b948a66e3fa72faeea63b084974863276b7c (patch) | |
tree | cf5e89d7b90ac8c2433d60b1e2e349d86d8b023d | |
parent | 170ba6f0675a21b2032900aa0d88727ce60c0b8d (diff) |
add filters for internet category
-rwxr-xr-x | games.py | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -37,7 +37,21 @@ class Games(QtWidgets.QMainWindow): def load_packages(self): with sqlite3.connect('/var/lib/epkg/db/epkg.db') as db: cursor=db.cursor() - cursor.execute('''SELECT * from remote_packages''') + cursor.execute(''' + SELECT + a.category AS cat, + a.name AS pn, + a.version AS av, + i.version AS iv, + a.description AS descr + FROM remote_packages AS a + LEFT JOIN local_packages AS i + ON a.category = i.category + AND a.name = i.name + AND a.slot = i.slot + WHERE a.name IN + ('steam', 'playonlinux', 'armagetronad', 'chromium-bsu', 'supertuxkart', 'teeworlds', 'dosbox', 'snes9x', 'zsnes', 'urbanterror', 'openttd', '0ad', 'warzone2100', 'wesnoth') + ''') rows = cursor.fetchall() for row in rows: |