Implement Cosmetics Configuration to the Administrators Panel

This commit is contained in:
Jeremy Zhang
2017-07-22 05:02:59 +00:00
parent f4608794a0
commit 1304ea6153
5 changed files with 231 additions and 3 deletions

View File

@ -7,8 +7,9 @@ class Cosmetics(db.Model):
css = db.Column(db.Boolean(), nullable=False) # If they can create/edit custom CSS
def __init__(self, user_id, **kwargs):
self.name = name
self.user_id = user_id
if "css" in kwargs:
self.css = kwargs["css"]
else:
self.css = False