summaryrefslogtreecommitdiff
path: root/everything.py
diff options
context:
space:
mode:
Diffstat (limited to 'everything.py')
-rwxr-xr-xeverything.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/everything.py b/everything.py
index 797d579..2137525 100755
--- a/everything.py
+++ b/everything.py
@@ -37,19 +37,18 @@ 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
- 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
- ''')
+ 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: