aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyfunkwhale/funkwhale.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py
index 79e9c65..bca346a 100644
--- a/pyfunkwhale/funkwhale.py
+++ b/pyfunkwhale/funkwhale.py
@@ -14,9 +14,14 @@ class Funkwhale(object):
token_endpoint, token_filename)
def _build_params(self, arguments):
+ """
+ Build params dict for python-requests. Not that all key who start
+ with an underscore are treated as par of the uri and are not in
+ the params dict.
+ """
params = {}
for k, v in arguments.items():
- if k != 'self' and v is not None:
+ if k != 'self' and v is not None and not k.startswith("_"):
params[k] = v
return params