* minor fixes and readme
This commit is contained in:
Sander Land authored and GitHub committed 2021-11-05 18:50:03 +01:00
1 parent 6005579c53
commit 070420941c
4 files changed
+10 -7

No files matched your search

+3 -2
View File
@@ -113,12 +113,13 @@ class KaTrainBase:
except Exception: # noqa E722 broken file etc
version_str = "0.0.0"
version = [0, 0, 0]
if version < parse_version(CONFIG_MIN_VERSION):
min_version = parse_version(CONFIG_MIN_VERSION)
if version < min_version:
backup = f"{user_config_file}.{version_str}.backup"
shutil.copyfile(user_config_file, backup)
shutil.copyfile(package_config_file, user_config_file)
self.log(
f"Copied package config file to {user_config_file} as user file is outdated or broken ({version}<{CONFIG_MIN_VERSION}). Old version stored as {backup}",
f"Copied package config file to {user_config_file} as user file is outdated or broken ({version}<{min_version}). Old version stored as {backup}",
OUTPUT_INFO,
)
config_file = user_config_file
+1 -1
View File
@@ -1,5 +1,5 @@
PROGRAM_NAME = "KaTrain"
VERSION = "1.10.0"
VERSION = "1.10.1"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.10.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0"
-1
View File
@@ -329,7 +329,6 @@ class KataGoEngine(BaseEngine):
except queue.Empty:
continue
with self.thread_lock:
self.katrain.log(f"GOT QUERY: {query}", OUTPUT_DEBUG)
if "id" not in query:
self.query_counter += 1
query["id"] = f"QUERY:{str(self.query_counter)}"