#2038 Allow report to filter for a key multiple times
Merged by pingou. Opened by pingou.
fix_new_report  into  master

Download 2038.patch

When we had an url with a query such as:
?milestone=none&milestone=1.0.1
We were saving it as:
{'milestone': '1.0.1'}
therefore loosing half of the information and that due to the code
assuming one value per key.

With this commit the url query:
milestone=none&milestone=1.0.1
is saved as:
{'milestone': ['none', '1.0.1']}
as desired.

Fixes https://pagure.io/pagure/issue/2012

1 new commit added

  • Add unit-tests for pagure.lib.save_report

Looks good, ack!

rebased

rebased

Pull-Request has been merged by pingou

Metadata