diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-02 18:32:07 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-02 18:32:07 +0100 |
| commit | a6f4249afb7018c43e69a7e7c7e69e53bf04aa8d (patch) | |
| tree | bca89b38ddcc7eca3a7055b3a9e20cae4adb5abb /app | |
| parent | 70afb94d3b985e314ff1f922294875e43c56fefc (diff) | |
| download | cheatdb-a6f4249afb7018c43e69a7e7c7e69e53bf04aa8d.tar.xz | |
Increase link string length limit
Diffstat (limited to 'app')
| -rw-r--r-- | app/models.py | 2 | ||||
| -rw-r--r-- | app/tasks/forumtasks.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models.py b/app/models.py index d85a888..5780aa0 100644 --- a/app/models.py +++ b/app/models.py @@ -688,7 +688,7 @@ class KrockForumTopic(db.Model): ttype = db.Column(db.Integer, nullable=False) title = db.Column(db.String(200), nullable=False) name = db.Column(db.String(30), nullable=True) - link = db.Column(db.String(50), nullable=True) + link = db.Column(db.String(200), nullable=True) def getType(self): if self.ttype == 1 or self.ttype == 2: diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py index a0339b0..b2e0ca8 100644 --- a/app/tasks/forumtasks.py +++ b/app/tasks/forumtasks.py @@ -104,7 +104,7 @@ def importKrocksModList(): tags = re.findall("\[([a-z0-9_]+)\]", x["title"]) name = None for tag in reversed(tags): - if len(tag) < 50 and not tag in BANNED_NAMES and \ + if len(tag) < 30 and not tag in BANNED_NAMES and \ not re.match("^([a-z][0-9]+)$", tag): name = tag break |
