Add "Outdated/invalid review" report category

This commit is contained in:
rubenwardy
2025-08-26 20:26:56 +01:00
parent b8e25f8565
commit 8631425ff7
2 changed files with 27 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ class ReportCategory(enum.Enum):
COPYRIGHT = "copyright"
USER_CONDUCT = "user_conduct"
ILLEGAL_HARMFUL = "illegal_harmful"
REVIEW = "review"
APPEAL = "appeal"
OTHER = "other"
@@ -150,6 +151,8 @@ class ReportCategory(enum.Enum):
return lazy_gettext("User behaviour, bullying, or abuse")
elif self == ReportCategory.ILLEGAL_HARMFUL:
return lazy_gettext("Illegal or harmful content")
elif self == ReportCategory.REVIEW:
return lazy_gettext("Outdated/invalid review")
elif self == ReportCategory.APPEAL:
return lazy_gettext("Appeal")
elif self == ReportCategory.OTHER:

View File

@@ -0,0 +1,24 @@
"""empty message
Revision ID: 57b7fbc174cf
Revises: 1e08d7e4c15d
Create Date: 2025-08-26 19:23:22.446424
"""
from alembic import op
from sqlalchemy import text
# revision identifiers, used by Alembic.
revision = '57b7fbc174cf'
down_revision = '1e08d7e4c15d'
branch_labels = None
depends_on = None
def upgrade():
op.execute(text("COMMIT"))
op.execute(text("ALTER TYPE reportcategory ADD VALUE 'REVIEW' AFTER 'ILLEGAL_HARMFUL'"))
def downgrade():
pass