mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-08-30 18:12:11 +00:00
lock getting char_xml behind gm 9
This commit is contained in:
parent
0066e0ea2d
commit
c6d624e154
@ -1010,3 +1010,21 @@ class Reports(db.Model):
|
|||||||
def delete(self):
|
def delete(self):
|
||||||
db.session.delete(self)
|
db.session.delete(self)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
class Audit(db.Model):
|
||||||
|
__tablename__ = 'audit'
|
||||||
|
|
||||||
|
data = db.Column(
|
||||||
|
JSON(),
|
||||||
|
nullable=False,
|
||||||
|
primary_key=True
|
||||||
|
)
|
||||||
|
|
||||||
|
def save(self):
|
||||||
|
db.session.add(self)
|
||||||
|
db.session.commit()
|
||||||
|
db.session.refresh(self)
|
||||||
|
|
||||||
|
def delete(self):
|
||||||
|
db.session.delete(self)
|
||||||
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user