1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00
This commit is contained in:
Steffo 2020-08-24 00:42:14 +02:00
parent 8a4a51fc7c
commit 9d76a714c3
2 changed files with 0 additions and 8 deletions

View file

@ -132,11 +132,6 @@ class Serf(abc.ABC):
"""Create and initialize the :class:`Alchemy` with the required tables, and find the link between the master
table and the identity table."""
self.alchemy = ra.Alchemy(alchemy_cfg["database_url"], tables)
self.master_table = self.alchemy.get(self._master_table)
self.identity_table = self.alchemy.get(self._identity_table)
# This is fine, as Pycharm doesn't know that identity_table is a class and not an object
# noinspection PyArgumentList
self.identity_column = self.identity_table.__getattribute__(self.identity_table, self._identity_column)
@property
def identity_chain(self) -> tuple:

View file

@ -34,9 +34,6 @@ class TelegramSerf(Serf):
interface_name = "telegram"
prefix = "/"
_identity_table = rbt.Telegram
_identity_column = "tg_id"
def __init__(self,
loop: aio.AbstractEventLoop,
alchemy_cfg: rc.ConfigDict,