mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(mkpkglists): default keys to result[1]
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
9f1f399957
commit
52110b7db5
1 changed files with 2 additions and 4 deletions
|
@ -21,14 +21,12 @@ on the following, right-hand side fields are added to each item.
|
||||||
import datetime
|
import datetime
|
||||||
import gzip
|
import gzip
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
import orjson
|
|
||||||
|
|
||||||
import aurweb.config
|
import aurweb.config
|
||||||
import aurweb.db
|
import aurweb.db
|
||||||
|
import orjson
|
||||||
|
|
||||||
packagesfile = aurweb.config.get('mkpkglists', 'packagesfile')
|
packagesfile = aurweb.config.get('mkpkglists', 'packagesfile')
|
||||||
packagesmetafile = aurweb.config.get('mkpkglists', 'packagesmetafile')
|
packagesmetafile = aurweb.config.get('mkpkglists', 'packagesmetafile')
|
||||||
|
@ -80,7 +78,7 @@ def get_extended_dict(query: str):
|
||||||
for result in cursor.fetchall():
|
for result in cursor.fetchall():
|
||||||
|
|
||||||
pkgid = result[0]
|
pkgid = result[0]
|
||||||
key = TYPE_MAP.get(result[1])
|
key = TYPE_MAP.get(result[1], result[1])
|
||||||
output = result[2]
|
output = result[2]
|
||||||
if result[3]:
|
if result[3]:
|
||||||
output += result[3]
|
output += result[3]
|
||||||
|
|
Loading…
Add table
Reference in a new issue