fix clean_params#106
fix clean_params#106GriceTurrble merged 3 commits intopython-amazon-mws:developfrom elcolumbio:develop
Conversation
clean_params keeps now False values. Removes only values which are None.
|
i am going to sleep. The if clause is still bad. If someone enters an integer 0 as value it gets removed. |
|
or dont remove anything? |
GriceTurrble
left a comment
There was a problem hiding this comment.
Why was is not None not sufficient? I'd think that would be enough.
|
agreed is not None is better. |
|
i thought it would be easy, but we have to fix some more stuff. but that is anyway bad, i can just remove those lines |
|
Yes, empty strings should be removed, as well. So Edit: I see no issue with that method for defaulting |
|
edited: python-amazon-mws/mws/apis/reports.py Lines 204 to 211 in 9a48010 |
|
this seems to be 2 helpful bug fixes. Can we merge it? |
|
bump this. I was about to push a PR for the same fix |
|
|
I agree, I think this should be two PR's, one for fixing setup, one for clean_params @elcolumbio are you able to do this ? |
Codecov Report
@@ Coverage Diff @@
## develop #106 +/- ##
==========================================
Coverage ? 77.27%
==========================================
Files ? 18
Lines ? 955
Branches ? 92
==========================================
Hits ? 738
Misses ? 212
Partials ? 5
Continue to review full report at Codecov.
|
GriceTurrble
left a comment
There was a problem hiding this comment.
Long overdue. Thank you for the contribution. :)
* upstream/develop: Add Feeds utility to convert dict FeedOptions to string (python-amazon-mws#181) Ensure correct decoding of bytes (python-amazon-mws#168) Compatibility fix (python-amazon-mws#124) Implement a couple of function for the OutboundShipments API. (python-amazon-mws#96) Added OutboundShipments.create_fulfillment_order (python-amazon-mws#95) added UpdateReportAcknowledgements (python-amazon-mws#101) Update feeds.py (python-amazon-mws#166) added easyship api support for indian marketplace (python-amazon-mws#169) Moving Slack link up, removing gitter chat link add all current marketplaces and alphabetize by country code (python-amazon-mws#155) Updated slack invite link Slack invite link (python-amazon-mws#152) Slack invite link fix clean_params (python-amazon-mws#106) add in NL marketplace information Fix flake8 warnings Update develop branch CI + package metadata include mws.apis in setup.py Fix bug: Remove trailing comma
clean_params should not delete boolean False values. Now removes only those values which are None.
since we introduced the apis subfolder we have to declare it in the setup.py so we can pip install mws.