From 1035fe287c21ae030dcf28dfb76d9f0fa35e393c Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 29 Jul 2014 17:49:00 -0700 Subject: [PATCH] Fix bug with blog post format type --- rophako/modules/blog/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rophako/modules/blog/__init__.py b/rophako/modules/blog/__init__.py index 061b6a9..5fc323b 100644 --- a/rophako/modules/blog/__init__.py +++ b/rophako/modules/blog/__init__.py @@ -134,8 +134,9 @@ def update(): g.info["post"] = post # Copy fields. - for field in ["author", "fid", "subject", "format", "body", "avatar", - "categories", "privacy", "emoticons", "comments"]: + for field in ["author", "fid", "subject", "format", "format", + "body", "avatar", "categories", "privacy", + "emoticons", "comments"]: g.info[field] = post[field] # Dissect the time. @@ -155,7 +156,7 @@ def update(): # Get all the fields from the posted params. g.info["post_id"] = request.form.get("id") - for field in ["fid", "subject", "body", "avatar", "categories", "privacy"]: + for field in ["fid", "subject", "format", "body", "avatar", "categories", "privacy"]: g.info[field] = request.form.get(field) for boolean in ["emoticons", "comments"]: g.info[boolean] = True if request.form.get(boolean, None) == "true" else False