1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
This commit is contained in:
Steffo 2019-01-28 20:17:17 +01:00
parent e75e087857
commit cb15abe56c

4
db.py
View file

@ -716,11 +716,11 @@ class Discord(Base, Mini):
@classmethod @classmethod
def mini_get_all(cls, session: Session): def mini_get_all(cls, session: Session):
return [dict(row) for row in session.execute(sql_queries.all_query)] return [dict(row) for row in session.execute(sql_queries.all_music_query)]
@classmethod @classmethod
def mini_get_single(cls, session: Session, **kwargs): def mini_get_single(cls, session: Session, **kwargs):
return session.execute(sql_queries.one_query, {"royal": kwargs["royal"].id}).fetchone() return session.execute(sql_queries.one_music_query, {"royal": kwargs["royal"].id}).fetchone()
@classmethod @classmethod
def mini_get_single_from_royal(cls, session: Session, royal: "Royal"): def mini_get_single_from_royal(cls, session: Session, royal: "Royal"):