Skip to content

Conversation

@Angeluz-07
Copy link
Contributor

Fixes #106

Copy link
Contributor

@EliuX EliuX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, it just need some small improvements.

def get_all(self, conditions: dict = {}) -> list:
conditions.update({"owner_id": self.current_user_id()})

if 'month' and 'year' in conditions:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much logic for a single function don't you think? Clean code my friend.

@Angeluz-07 Angeluz-07 force-pushed the feature/get-time-entries-per-month-and-year#106 branch from 9a71d4a to f877e0a Compare April 30, 2020 21:36
@Angeluz-07 Angeluz-07 force-pushed the feature/get-time-entries-per-month-and-year#106 branch from 02f7899 to e903313 Compare May 1, 2020 00:44
@Angeluz-07 Angeluz-07 force-pushed the feature/get-time-entries-per-month-and-year#106 branch from e903313 to ff4a4d6 Compare May 1, 2020 00:47
@Angeluz-07 Angeluz-07 merged commit 450a71d into master May 1, 2020
@EliuX EliuX deleted the feature/get-time-entries-per-month-and-year#106 branch May 1, 2020 00:59
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.

Get time-entries per month of the year

3 participants