feat(bot): ✨ Add a priority system to reports.
This commit is contained in:
@@ -142,7 +142,7 @@ class ReportView(discord.ui.View):
|
||||
|
||||
next_report = (
|
||||
await models.Report.filter(status=models.ReportStatus.ON_REVIEW)
|
||||
.order_by("id")
|
||||
.order_by("-priority")
|
||||
.limit(1)
|
||||
.first()
|
||||
.select_related("call")
|
||||
@@ -207,7 +207,7 @@ class ReportView(discord.ui.View):
|
||||
|
||||
report = (
|
||||
await models.Report.filter(status=models.ReportStatus.ON_REVIEW)
|
||||
.order_by("id")
|
||||
.order_by("-priority")
|
||||
.limit(1)
|
||||
.first()
|
||||
.select_related("call")
|
||||
|
||||
Reference in New Issue
Block a user