aboutsummaryrefslogtreecommitdiff
path: root/app/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/models.py')
-rw-r--r--app/models.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models.py b/app/models.py
index cbb91da..4289781 100644
--- a/app/models.py
+++ b/app/models.py
@@ -311,7 +311,7 @@ class License(db.Model):
class PackageType(enum.Enum):
- MOD = "Mod"
+ MOD = "Clientmod"
GAME = "Game"
TXP = "Texture Pack"
@@ -333,6 +333,12 @@ class PackageType(enum.Enum):
return [(choice, choice.value) for choice in cls]
@classmethod
+ def choices_cheat(cls):
+ c = cls.choices()
+ c.remove((cls.GAME, cls.GAME.value))
+ return c
+
+ @classmethod
def coerce(cls, item):
return item if type(item) == PackageType else PackageType[item]