Remove entries with less than 3 points

This commit is contained in:
Hans5958 2022-04-08 22:36:55 +07:00
parent 7c1fcf06e3
commit cc4bd5b6da

View file

@ -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