diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-04-02 16:47:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-04-02 16:47:54 +0100 |
commit | 518215ee95b35a687679c17ed295970f0ff8cc6e (patch) | |
tree | afbceeaf63c1d6014590ca67d1d611b367592d4f /everything.py | |
parent | 93fc6474044a6fa09cb9c77e972f347ab7efdbd1 (diff) |
populate All packages category
Diffstat (limited to 'everything.py')
-rwxr-xr-x | everything.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/everything.py b/everything.py index 2e55955..f1d1f8e 100755 --- a/everything.py +++ b/everything.py @@ -37,7 +37,19 @@ class Everything(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 + ''') rows = cursor.fetchall() for row in rows: |