Skip to content

Commit 283fa59

Browse files
committed
check_fetcher: support putting history somewhere else than main path
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 319defd commit 283fa59

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

check_fetcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import os
88

99
from core import NIPA_DIR
10-
from core import Maintainers, Person
11-
from core import log, log_open_sec, log_end_sec, log_init
12-
from core import Tree
10+
from core import log_init
1311
from pw import Patchwork
1412

1513

@@ -116,7 +114,9 @@ def main():
116114
json.dump(new_db, fp)
117115

118116
now = datetime.datetime.now()
119-
with open(tgt_json + now.strftime("-%m-%Y"), "w") as fp:
117+
hdir = config.get('dirs', 'history', fallback=rdir)
118+
hpath = os.path.join(hdir, "checks" + now.strftime("-%m-%Y") + ".json")
119+
with open(hpath, "w") as fp:
120120
json.dump(new_db, fp)
121121

122122

0 commit comments

Comments
 (0)