[mastodon] Changed MastodonAccount column: instance_id -> instance
This commit is contained in:
parent
c51c79f216
commit
92837407bc
|
@ -22,8 +22,8 @@ class MastodonBot(Censor):
|
||||||
self.model = mastodon_account_model
|
self.model = mastodon_account_model
|
||||||
self.enabled = self.model.enabled
|
self.enabled = self.model.enabled
|
||||||
self.account = Mastodon(
|
self.account = Mastodon(
|
||||||
client_id=self.model.instance_id.client_id,
|
client_id=self.model.instance.client_id,
|
||||||
client_secret=self.model.instance_id.client_secret,
|
client_secret=self.model.instance.client_secret,
|
||||||
access_token=self.model.access_token,
|
access_token=self.model.access_token,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ class MastodonInstance(Model):
|
||||||
class MastodonAccount(Model):
|
class MastodonAccount(Model):
|
||||||
id: Integer(primary_key=True) = None
|
id: Integer(primary_key=True) = None
|
||||||
hood: ForeignKey(Hood)
|
hood: ForeignKey(Hood)
|
||||||
instance_id: ForeignKey(MastodonInstance)
|
instance: ForeignKey(MastodonInstance)
|
||||||
access_token: Text()
|
access_token: Text()
|
||||||
enabled: Boolean() = False
|
enabled: Boolean() = False
|
||||||
last_seen: Text()
|
last_seen: Text()
|
||||||
|
|
Loading…
Reference in a new issue