aboutsummaryrefslogtreecommitdiff
path: root/app/models.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-29 21:24:50 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-29 21:25:47 +0100
commit16006874491d1e1492e1337a0e58db43236a7ffb (patch)
tree05aaef6cebd01bc2cd5b8802a303ddeabbee9794 /app/models.py
parentfa2f17526f0999c5081cae577903efef9111a4be (diff)
downloadcheatdb-16006874491d1e1492e1337a0e58db43236a7ffb.tar.xz
Add non-free warning
Diffstat (limited to 'app/models.py')
-rw-r--r--app/models.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models.py b/app/models.py
index 368e59b..ece47a9 100644
--- a/app/models.py
+++ b/app/models.py
@@ -184,11 +184,13 @@ class Notification(db.Model):
class License(db.Model):
- id = db.Column(db.Integer, primary_key=True)
- name = db.Column(db.String(50), nullable=False, unique=True)
+ id = db.Column(db.Integer, primary_key=True)
+ name = db.Column(db.String(50), nullable=False, unique=True)
+ is_foss = db.Column(db.Boolean, nullable=False, default=True)
- def __init__(self, v):
+ def __init__(self, v, is_foss=True):
self.name = v
+ self.is_foss = is_foss
def __str__(self):
return self.name