check required accuracy when computing timezones
This commit is contained in:
parent
749f488d90
commit
cca439a931
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ def _locations() -> Iterator[Tuple[LatLon, datetime]]:
|
||||||
try:
|
try:
|
||||||
import my.location.all
|
import my.location.all
|
||||||
for loc in my.location.all.locations():
|
for loc in my.location.all.locations():
|
||||||
|
if loc.accuracy is not None and loc.accuracy > config.require_accuracy:
|
||||||
|
continue
|
||||||
yield ((loc.lat, loc.lon), loc.dt)
|
yield ((loc.lat, loc.lon), loc.dt)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue