add comment about adding/removing sources
This commit is contained in:
parent
15fcec6fcb
commit
a417e5c838
1 changed files with 8 additions and 6 deletions
|
@ -16,17 +16,12 @@ logger = LazyLogger(__name__, level="warning")
|
|||
|
||||
|
||||
def locations() -> Iterator[Location]:
|
||||
# can add/comment out sources here to disable them, or use core.disabled_modules
|
||||
yield from _takeout_locations()
|
||||
yield from _gpslogger_locations()
|
||||
yield from _ip_locations()
|
||||
|
||||
|
||||
@import_source(module_name="my.location.via_ip")
|
||||
def _ip_locations() -> Iterator[Location]:
|
||||
from . import via_ip
|
||||
yield from via_ip.locations()
|
||||
|
||||
|
||||
@import_source(module_name="my.location.google_takeout")
|
||||
def _takeout_locations() -> Iterator[Location]:
|
||||
from . import google_takeout
|
||||
|
@ -38,6 +33,13 @@ def _gpslogger_locations() -> Iterator[Location]:
|
|||
from . import gpslogger
|
||||
yield from gpslogger.locations()
|
||||
|
||||
|
||||
@import_source(module_name="my.location.via_ip")
|
||||
def _ip_locations() -> Iterator[Location]:
|
||||
from . import via_ip
|
||||
yield from via_ip.locations()
|
||||
|
||||
|
||||
def stats() -> Stats:
|
||||
from my.core import stat
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue