Add attribute type to mastodon session

This commit is contained in:
Manuel Cortez 2022-02-24 16:08:29 -06:00
parent e3137f4c3d
commit 9f74d568f0
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -22,6 +22,7 @@ class Session(base.baseSession):
super(Session, self).__init__(*args, **kwargs) super(Session, self).__init__(*args, **kwargs)
self.config_spec = "mastodon.defaults" self.config_spec = "mastodon.defaults"
self.supported_languages = [] self.supported_languages = []
self.type = "mastodon"
def login(self, verify_credentials=True): def login(self, verify_credentials=True):
if self.settings["mastodon"]["access_token"] != None and self.settings["mastodon"]["instance"] != None: if self.settings["mastodon"]["access_token"] != None and self.settings["mastodon"]["instance"] != None: