code: implement #2
This commit is contained in:
parent
77b796b030
commit
2a95265e0d
|
@ -290,6 +290,9 @@ def parse_query(
|
||||||
locality = oquery.replace(pcode, "")
|
locality = oquery.replace(pcode, "")
|
||||||
locality = locality.strip().strip(",").strip()
|
locality = locality.strip().strip(",").strip()
|
||||||
|
|
||||||
|
if debug:
|
||||||
|
stderr.wtite(f"debug: {pcode=}, {locality=}")
|
||||||
|
|
||||||
return True, Localcode(code=pcode, locality=locality)
|
return True, Localcode(code=pcode, locality=locality)
|
||||||
|
|
||||||
return False, "unable to find a pluscode/match to a format"
|
return False, "unable to find a pluscode/match to a format"
|
||||||
|
|
Loading…
Reference in a new issue