Skip to content

Commit 89d7d50

Browse files
committed
Resolve TODO
Turns out this was possible all along. This is easier to read so let's do it. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent fc733f9 commit 89d7d50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git_pw/patch.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ def list_cmd(state, submitter, delegate, archived, limit, page, sort, name):
249249

250250
params.extend([
251251
('q', name),
252-
# TODO(stephenfin): Perhaps we could use string values. Refer to
253-
# https://github.com/carltongibson/django-filter/pull/378
254-
('archived', 3 if archived else 1),
252+
('archived', 'true' if archived else 'false'),
255253
('page', page),
256254
('per_page', limit),
257255
('order', sort),

0 commit comments

Comments
 (0)