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
daef98080e
commit
6e344ce9da
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ on the following, right-hand side fields are added to each item.
|
||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
|
@ -83,7 +82,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