From 05cb2b3c73fab5c2c3204b0f32c12ac8d06efa1f Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 19 May 2019 20:20:06 -0500 Subject: [PATCH] Added a fix when sending params to the API --- funkwhale/api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/funkwhale/api.py b/funkwhale/api.py index 9616af0..dd2364d 100644 --- a/funkwhale/api.py +++ b/funkwhale/api.py @@ -49,7 +49,7 @@ class Session(object): def get(self, method, **params): """ Helper for all GET methods. This should not be used directly. """ - response = self.http.get(self.instance_endpoint+self.API_PREFIX+self.API_VERSION+method, data=params) + response = self.http.get(self.instance_endpoint+self.API_PREFIX+self.API_VERSION+method, params=params) if response.ok == False: raise APIError("Error {error_code}: {text}".format(error_code=response.status_code, text=response.text)) return response.json() @@ -65,9 +65,6 @@ class Session(object): method = method.replace("/libraries", "/{id}/libraries".format(id=args[0])) else: method = method+"/{id}".format(id=args[0]) - print(method) - print(args) - print(kwargs) result = getattr(self, extension)(method=method, **kwargs) return result