mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-17 23:44:06 +01:00
Remove entries with less than 3 points
This commit is contained in:
parent
7c1fcf06e3
commit
cc4bd5b6da
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ def validate(entry: dict):
|
||||||
return_status = 3
|
return_status = 3
|
||||||
elif len(entry["path"]) < 3:
|
elif len(entry["path"]) < 3:
|
||||||
print(f"Entry {entry['id']} only has {len(entry['path'])} point(s)!")
|
print(f"Entry {entry['id']} only has {len(entry['path'])} point(s)!")
|
||||||
return_status = 2
|
return_status = 3
|
||||||
for key in entry:
|
for key in entry:
|
||||||
if key in VALIDATE_REGEX and not re.match(VALIDATE_REGEX[key], entry[key]):
|
if key in VALIDATE_REGEX and not re.match(VALIDATE_REGEX[key], entry[key]):
|
||||||
if return_status < 2: return_status = 2
|
if return_status < 2: return_status = 2
|
||||||
|
|
Loading…
Reference in a new issue