aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-04-11 18:07:17 +0200
committerneodarz <neodarz@neodarz.net>2020-04-11 18:07:17 +0200
commit7bf12208b36efd45bfb1d9be1df6f261bfbd6a67 (patch)
tree7cb750fb9adac583f5e3179959a16f50a8d00591
parent43d7b01351a314b52c1a9fda901be461abfaa5a1 (diff)
downloadpyfunkwhale-7bf12208b36efd45bfb1d9be1df6f261bfbd6a67.tar.xz
pyfunkwhale-7bf12208b36efd45bfb1d9be1df6f261bfbd6a67.zip
Add abaility to build parameters
Diffstat (limited to '')
-rw-r--r--pyfunkwhale/funkwhale.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py
index 8f399ab..ec88f0d 100644
--- a/pyfunkwhale/funkwhale.py
+++ b/pyfunkwhale/funkwhale.py
@@ -13,5 +13,13 @@ class Funkwhale(object):
scopes, username, password, domain, authorization_endpoint,
token_endpoint, token_filename)
+ def _build_params(self, arguments):
+ params = {}
+ for k, v in arguments.items():
+ if k != 'self' and v is not None:
+ params[k] = v
+
+ return params
+
def artists(self):
return self.client.call('/artists/', 'get').json()