Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: Add user_id attribute
  • Loading branch information
fabidick22 committed May 28, 2020
commit f87c7977d55b88199cc71c9cfaf20344c163ed24
10 changes: 10 additions & 0 deletions time_tracker_api/time_entries/time_entries_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,22 @@
)

# custom attributes filter
attributes_filter.add_argument(
'user_id',
required=False,
store_missing=False,
help="(Filter) User to filter by",
location='args',
)

attributes_filter.add_argument(
'month',
required=False,
store_missing=False,
help="(Filter) Month to filter by",
location='args',
)

attributes_filter.add_argument(
'year',
required=False,
Expand All @@ -158,6 +167,7 @@
help="(Filter) Start to filter by",
location='args',
)

attributes_filter.add_argument(
'end_date',
required=False,
Expand Down