mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
indexers: fix some bugs in python scripts
This commit is contained in:
parent
ea171172d1
commit
7dadb4ad15
@ -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,
|
||||
),
|
||||
|
@ -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 (
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user