-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various Fixes in the defaults for classify #13
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes, but breaks Travis and has some issues I'd like to get fixed before I merge it.
events = exclude_keyvals(events, "app", browsernames_chrome) | ||
events = exclude_keyvals(events, "app", browsernames_ff) | ||
events = concat(events, events_web_ff) | ||
events = concat(events, events_web) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -423,7 +425,7 @@ def test_union_no_overlap(): | |||
def get_events(since: datetime, end: datetime, include_smartertime='auto', include_toggl=None) -> List[Event]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to change include_smartertime='auto'
to False
than to pass it in the call on line 542.
args.start = args.end - how_far_back | ||
events = get_events(args.start, args.end, include_toggl='./data/private/Toggl_time_entries_2017-12-17_to_2018-11-11.csv') | ||
events = get_events(args.start, args.end, False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the False
I was referring to.
@@ -0,0 +1 @@ | |||
regex;sub-category;category |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the default categories and add a comment specifying the format instead.
The file name should still be categories.example.csv
, correct the filename used in the code.
As mentioned in #12 here my various fixes and i found one more issue where data from Chromium was completely dropped.