From cc4bd5b6da359c9ceb43799bda29c80bb05a2ed7 Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Fri, 8 Apr 2022 22:36:55 +0700 Subject: [PATCH] Remove entries with less than 3 points --- tools/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/formatter.py b/tools/formatter.py index bfcb92f2..7787c115 100644 --- a/tools/formatter.py +++ b/tools/formatter.py @@ -202,7 +202,7 @@ def validate(entry: dict): return_status = 3 elif len(entry["path"]) < 3: print(f"Entry {entry['id']} only has {len(entry['path'])} point(s)!") - return_status = 2 + return_status = 3 for key in entry: if key in VALIDATE_REGEX and not re.match(VALIDATE_REGEX[key], entry[key]): if return_status < 2: return_status = 2