From 5d6db78e6e1647371139ef8d1f1a1f2ce9d2fd2b Mon Sep 17 00:00:00 2001 From: Midgard Date: Mon, 22 Jun 2020 18:43:52 +0200 Subject: [PATCH] Strip newline from HLDS data version --- app/hlds/definitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hlds/definitions.py b/app/hlds/definitions.py index 56d1182..385e16d 100644 --- a/app/hlds/definitions.py +++ b/app/hlds/definitions.py @@ -18,4 +18,4 @@ location_definitions: List[Location] = parse_all_directory(DATA_DIR) location_definitions.sort(key=lambda l: l.name) proc = subprocess.run(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, check=True) -location_definition_version = proc.stdout +location_definition_version = proc.stdout.decode().strip()