From 541ff1a00d804ede8516cc8c57a6790f32f08317 Mon Sep 17 00:00:00 2001 From: fly Date: Sun, 22 Dec 2019 04:08:34 +0000 Subject: [PATCH] Fix bugs Signed-off-by: fly --- scripts/build-chunk.py | 1 + scripts/worldbuild.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build-chunk.py b/scripts/build-chunk.py index b540af6..569a138 100755 --- a/scripts/build-chunk.py +++ b/scripts/build-chunk.py @@ -44,6 +44,7 @@ while i < argc: print(" --host Logger host") print(" --port Logger port") print(" -h, --help Shows this help and exit") + i += 1 def send_status(name, status): try: diff --git a/scripts/worldbuild.py b/scripts/worldbuild.py index 50fbe12..4305890 100755 --- a/scripts/worldbuild.py +++ b/scripts/worldbuild.py @@ -337,9 +337,10 @@ elif db_strategy == "chunk": ii += 1 db_prefix = "-p " + db_prefix - os.system("echo '" + tile_list + "' | parallel --eta -j " + str(threads) + " ./scripts/build-chunck.py {} " + str(db_prefix)) + os.system("echo '" + tile_list + "' | parallel --eta -j " + str(threads) + " ./scripts/build-chunk.py {} " + str(db_prefix)) elif db_startegy == "mono": - pass + print("ERROR: NOT YET IMPLEMENTED") + sys.exit(1) print_build_time(start_time, time.time())