Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit fdc0001

Browse files
committed
Fix empty output in get_workdiaries
get_workdiaries expects a response with unexistend data structure. As a result, it always returns an empty response. Let's return the full response instead.
1 parent d8a0317 commit fdc0001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

upwork/routers/team.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_workdiaries(self, team_id, date, sort_by=None, activity=None, freelancer
109109
if paging:
110110
data['paging'] = paging
111111

112-
snapshots = result.get('data', data).get('data', [])
112+
snapshots = result.get('data', data)
113113
if not isinstance(snapshots, list):
114114
snapshots = [snapshots]
115115
#not sure we need to return user

0 commit comments

Comments
 (0)