some cleanup

This commit is contained in:
NichtJens
2021-06-01 09:30:43 +02:00
parent 650f7be38d
commit f36e2534c4
2 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,6 @@
import requests
import functools
import json
import requests
from .authmixin import AuthMixin, AuthError, HEADER_JSON
@ -57,9 +57,6 @@ class HttpClient(AuthMixin):
def _login(self, payload=None, headers=None, timeout=10):
return requests.post(self.address + "/users/login", json=payload, headers=headers, timeout=timeout, verify=self._verify_certificate).json()
def typename(self, obj):
return type(obj).__name__
@staticmethod
def make_filter(where:dict=None, limit:int=0, skip:int=0, fields:dict=None, include:dict=None, order:list=None):
filt = dict()