indexers: fix some bugs in python scripts

This commit is contained in:
DavHau 2022-09-28 16:31:35 +02:00
parent ea171172d1
commit 7dadb4ad15
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ def store_error(attrPath, category, text, name=None):
json.dump(
dict(
attrPath=attrPath,
during=category,
category=category,
error=text,
name=name,
),

View File

@ -166,10 +166,10 @@ in rec {
buildAllApp = let
buildScript =
pkgs.writers.writePython3 "build-job" {}
pkgs.writers.writePython3 "build-script" {}
./build-script.py;
statsScript =
pkgs.writers.writePython3 "build-job" {}
pkgs.writers.writePython3 "make-stats" {}
./make-stats.py;
in
mkApp (

View File

@ -7,7 +7,7 @@ build_errors = 0
all_errors = {}
for file in error_files:
with open(file) as f:
with open(f"errors/{file}") as f:
error = json.load(f)
# add error to all_errors
all_errors[error['attrPath']] = error