aboutsummaryrefslogtreecommitdiffstats
path: root/handlers.py
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmail.com>2019-09-08 23:18:35 +0200
committerFulgen301 <tokmajigeorge@gmail.com>2019-09-08 23:18:35 +0200
commit1fef7cb2ea826f4d71dbf365ad45b46a0ccb7dfb (patch)
tree424a6f28b3df6cf0682a58a8cae531a6c09becb2 /handlers.py
parenta320e75f3f0e06543934d9b1dc4a2d57c6a4ce42 (diff)
downloadparry-1fef7cb2ea826f4d71dbf365ad45b46a0ccb7dfb.tar.gz
parry-1fef7cb2ea826f4d71dbf365ad45b46a0ccb7dfb.zip
Allow Upload.version to be NULL (no version)
Diffstat (limited to 'handlers.py')
-rw-r--r--handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers.py b/handlers.py
index 533795c..896ed87 100644
--- a/handlers.py
+++ b/handlers.py
@@ -52,7 +52,7 @@ class Website(Site):
entry.tags = [self.tag]
entry.slug = "".join(i for i in html.unescape(m["title"]).lower() if i in string.ascii_letters)
entry.updated_at = datetime.strptime(m["updatedAt"], self.date_format)
- entry.version = m["version"] if "version" in m.groupdict() else ""
+ entry.version = m["version"] if "version" in m.groupdict() else None
entry.readonly = True
try: