aboutsummaryrefslogtreecommitdiffstats
path: root/routes/uploads.py
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmail.com>2018-10-14 18:22:32 +0200
committerFulgen301 <tokmajigeorge@gmail.com>2018-10-14 18:22:32 +0200
commit5495f8f07254efe6b6926514101c88ee69533318 (patch)
tree7a0cec6f02283184de8c85ddcd0767783681efeb /routes/uploads.py
parent4e56b83a4d5b95b7634f7cce59fcfe8a08ccae9f (diff)
downloadparry-5495f8f07254efe6b6926514101c88ee69533318.tar.gz
parry-5495f8f07254efe6b6926514101c88ee69533318.zip
Upload: Add version
Diffstat (limited to 'routes/uploads.py')
-rw-r--r--routes/uploads.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/uploads.py b/routes/uploads.py
index 06fb532..bba927d 100644
--- a/routes/uploads.py
+++ b/routes/uploads.py
@@ -81,6 +81,7 @@ def post_upload(id=None):
entry = Upload()
entry.title = request_data()["title"]
+ entry.version = request_data()["version"]
entry.description=request_data()["description"]
entry.slug = "".join(i for i in request_data()["title"].lower() if i in string.ascii_letters)
entry.tags = request_data().get("tags", [])