tb1337 / paperless-api

Little api client for paperless(-ngx).
https://pypi.org/p/pypaperless/
MIT License
27 stars 5 forks source link

Turn `__in` filter lists into comma-separated strings #227

Closed madduck closed 3 months ago

madduck commented 3 months ago

For __in filters, the Paperless NGX API expects a comma-separated string of IDs, not a list (see https://github.com/paperless-ngx/paperless-ngx/issues/6996). This patch turns a list into such a string for __in filters.

Closes: #226

tb1337 commented 3 months ago

Hey @madduck Please check the linter errors and commit again to your branch. Then, the pipeline should pass.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 97.75%. Comparing base (8cccc82) to head (c4c14f2). Report is 6 commits behind head on main.

:exclamation: Current head c4c14f2 differs from pull request most recent head 513bdaf

Please upload reports for the commit 513bdaf to get more accurate results.

Files Patch % Lines
src/pypaperless/models/mixins/helpers/iterable.py 12.50% 6 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #227 +/- ## ========================================== - Coverage 98.22% 97.75% -0.47% ========================================== Files 34 34 Lines 1465 1473 +8 Branches 192 194 +2 ========================================== + Hits 1439 1440 +1 - Misses 13 19 +6 - Partials 13 14 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

madduck commented 3 months ago

Hey @madduck Please check the linter errors and commit again to your branch. Then, the pipeline should pass.

Done.