add reporter id to bug reports

fix moderation status filters
This commit is contained in:
Aaron Kimbre
2022-04-02 18:17:16 -05:00
parent 70aed00d97
commit 6fa7ade6a3
6 changed files with 100 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ from flask_sqlalchemy import BaseQuery
from sqlalchemy.dialects import mysql
from sqlalchemy.exc import OperationalError, StatementError
from sqlalchemy.types import JSON
from sqlalchemy.ext.hybrid import hybrid_property
from time import sleep
import random
import string
@@ -956,6 +955,12 @@ class BugReport(db.Model):
nullable=True
)
reporter_id = db.Column(
mysql.INTEGER(),
nullable=False,
server_default='0'
)
def save(self):
db.session.add(self)
db.session.commit()