Skip to content

Commit

Permalink
Not convert *False* filter.
Browse files Browse the repository at this point in the history
Boolean *False* is possible to be a filter of some resource.
Need to exclude it in this hack.
  • Loading branch information
erichuanggit committed Sep 10, 2015
1 parent ea6a8aa commit 5aae050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdc_client/bin/pdc_client
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if __name__ == "__main__":
data = load_data(options)

for key, value in data.iteritems():
if options.request == 'GET' and not value:
if options.request == 'GET' and not value and value is not False:
# empty string won't be lost
data[key] = ''

Expand Down

0 comments on commit 5aae050

Please sign in to comment.