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
|
@ -110,7 +110,7 @@ def pre_dataframe() -> Iterable[Res[SleepEntry]]:
|
|||
sleeps = load_sleeps()
|
||||
# todo emit error if graph doesn't exist??
|
||||
sleeps = [s for s in sleeps if s.graph.exists()] # TODO careful..
|
||||
from ..common import group_by_key
|
||||
from ..core.common import group_by_key
|
||||
for dd, group in group_by_key(sleeps, key=lambda s: s.date_).items():
|
||||
if len(group) == 1:
|
||||
yield group[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue