prettify emfit provider

This commit is contained in:
Dima Gerasimov 2020-05-03 13:36:54 +01:00
parent 2bf62e2db3
commit 78dbbd3c55
5 changed files with 28 additions and 35 deletions

View file

@ -15,10 +15,10 @@ from .common import get_files, LazyLogger
from my.config import foursquare as config
logger = LazyLogger(__package__)
logger = LazyLogger(__name__)
def _get_exports() -> List[Path]:
def inputs():
return get_files(config.export_path, '*.json')
@ -62,7 +62,7 @@ class Place:
def get_raw(fname=None):
if fname is None:
fname = max(_get_exports())
fname = max(inputs())
j = json.loads(Path(fname).read_text())
assert isinstance(j, list)