Skip to content

Commit 990554f

Browse files
committed
Fix issue PagerDuty#18: wrong type for sort_by parameter
1 parent ae30ee5 commit 990554f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

REST_API_v2/Incidents/list_incidents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
USER_IDS = []
4242
URGENCIES = []
4343
TIME_ZONE = 'UTC'
44-
SORT_BY = []
44+
SORT_BY = '' # comma-delineated list; see https://v2.developer.pagerduty.com/docs/sorting
4545
INCLUDE = []
4646

4747

@@ -62,7 +62,7 @@ def list_incidents():
6262
'user_ids[]': USER_IDS,
6363
'urgencies[]': URGENCIES,
6464
'time_zone': TIME_ZONE,
65-
'sort_by[]': SORT_BY,
65+
'sort_by': SORT_BY,
6666
'include[]': INCLUDE
6767
}
6868
r = requests.get(url, headers=headers, params=payload)

0 commit comments

Comments
 (0)