Skip to content

Commit b0b0792

Browse files
committed
refine config.json
1 parent 95edca1 commit b0b0792

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

images/utils/launcher/config/config.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,7 @@ def dump(self) -> None:
979979
"""Dump xud-docker configurations as a JSON file in data_dir"""
980980
services = []
981981
config = {
982-
"timestamp": "%s" % datetime.now().timestamp(),
983-
"branch": self.branch,
982+
"timestamp": "%s" % int(datetime.now().timestamp()),
984983
"network": self.network,
985984
"services": services,
986985
}
@@ -1077,4 +1076,4 @@ def dump(self) -> None:
10771076
os.mkdir(data_dir)
10781077

10791078
with open(f, "w") as f:
1080-
f.write(json.dumps(config))
1079+
f.write(json.dumps(config, indent=4))

0 commit comments

Comments
 (0)