aboutsummaryrefslogtreecommitdiff
path: root/app/models.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-26 01:58:56 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-26 01:58:56 +0100
commitef0a32524e83d73ac5234ef5765d54b9348e52bf (patch)
tree3b77734a9add3b69bc1dc991d56cb5157bfe47b4 /app/models.py
parent2abcd8ee474e0f98c54af8bfe6fb40979f3b18ba (diff)
downloadcheatdb-ef0a32524e83d73ac5234ef5765d54b9348e52bf.tar.xz
Add banning
Fixes #13
Diffstat (limited to 'app/models.py')
-rw-r--r--app/models.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/models.py b/app/models.py
index aa67c6a..142b61c 100644
--- a/app/models.py
+++ b/app/models.py
@@ -31,12 +31,13 @@ migrate = Migrate(app, db)
class UserRank(enum.Enum):
- NOT_JOINED = 0
- NEW_MEMBER = 1
- MEMBER = 2
- EDITOR = 3
- MODERATOR = 4
- ADMIN = 5
+ BANNED = 0
+ NOT_JOINED = 1
+ NEW_MEMBER = 2
+ MEMBER = 3
+ EDITOR = 4
+ MODERATOR = 5
+ ADMIN = 6
def atLeast(self, min):
return self.value >= min.value