Ruby-Cogs/appeals/db/utils.py
Valerie 477974d53c
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Upload 2 Cogs & Update README
2025-05-23 01:30:53 -04:00

10 lines
332 B
Python

from .tables import AppealQuestion
class DBUtils:
async def get_sorted_questions(self, guild_id: int) -> list[AppealQuestion]:
return (
await AppealQuestion.objects()
.where(AppealQuestion.guild == guild_id)
.order_by(AppealQuestion.sort_order, AppealQuestion.created_at)
)