general: minor cleanup
- get rid of unnecessary globs in get_files (they should be in config if the user wishes) - get rid of some old kython imports - do not convert Path twice in foursquare (so CPath works correctly)
This commit is contained in:
parent
5799c062a5
commit
71cda586ad
10 changed files with 20 additions and 58 deletions
|
@ -17,7 +17,7 @@ logger = LazyLogger(__name__)
|
|||
|
||||
|
||||
def inputs():
|
||||
return get_files(config.export_path, '*.json')
|
||||
return get_files(config.export_path)
|
||||
|
||||
|
||||
class Checkin:
|
||||
|
@ -61,7 +61,7 @@ class Place:
|
|||
def get_raw(fname=None):
|
||||
if fname is None:
|
||||
fname = max(inputs())
|
||||
j = json.loads(Path(fname).read_text())
|
||||
j = json.loads(fname.read_text())
|
||||
assert isinstance(j, list)
|
||||
|
||||
for chunk in j:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue