mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
whoops
This commit is contained in:
parent
8a4a51fc7c
commit
9d76a714c3
2 changed files with 0 additions and 8 deletions
|
@ -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
|
"""Create and initialize the :class:`Alchemy` with the required tables, and find the link between the master
|
||||||
table and the identity table."""
|
table and the identity table."""
|
||||||
self.alchemy = ra.Alchemy(alchemy_cfg["database_url"], tables)
|
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
|
@property
|
||||||
def identity_chain(self) -> tuple:
|
def identity_chain(self) -> tuple:
|
||||||
|
|
|
@ -34,9 +34,6 @@ class TelegramSerf(Serf):
|
||||||
interface_name = "telegram"
|
interface_name = "telegram"
|
||||||
prefix = "/"
|
prefix = "/"
|
||||||
|
|
||||||
_identity_table = rbt.Telegram
|
|
||||||
_identity_column = "tg_id"
|
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
loop: aio.AbstractEventLoop,
|
loop: aio.AbstractEventLoop,
|
||||||
alchemy_cfg: rc.ConfigDict,
|
alchemy_cfg: rc.ConfigDict,
|
||||||
|
|
Loading…
Reference in a new issue