Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rTreutlein
Copy link

As mentioned in #12 here my various fixes and i found one more issue where data from Chromium was completely dropped.

Copy link
Member

@ErikBjare ErikBjare left a 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)
Copy link
Member

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]:
Copy link
Member

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)
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants