1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44: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
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
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
def mini_get_single_from_royal(cls, session: Session, royal: "Royal"):