fix settings call

This commit is contained in:
Matthias 2022-01-09 03:33:47 +01:00
parent ea8fd21af0
commit b48e9bcac9
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -373,12 +373,12 @@ class APICallMixin:
@property
def api_url(self):
return f'{self.API_METHOD}://{self.get_globalsetting(self.API_URL_SETTING)}'
return f'{self.API_METHOD}://{self.get_setting(self.API_URL_SETTING)}'
@property
def api_headers(self):
return {
self.API_TOKEN: self.get_globalsetting(self.API_TOKEN_SETTING),
self.API_TOKEN: self.get_setting(self.API_TOKEN_SETTING),
'Content-Type': 'application/json'
}