check required accuracy when computing timezones

This commit is contained in:
Sean Breckenridge 2022-04-25 20:30:23 -07:00
parent 749f488d90
commit cca439a931

View file

@ -60,6 +60,8 @@ def _locations() -> Iterator[Tuple[LatLon, datetime]]:
try:
import my.location.all
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)
except Exception as e: