Jason il y a 2 ans
Parent
commit
d600cf0241
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      backstage/blogs/routes.py

+ 2 - 2
backstage/blogs/routes.py

@@ -277,7 +277,7 @@ def edit_contact_us_editemail():
         inf.write(result)      
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success " + result
+    return "{success: Success " + result + "}"
 
 @blogs_app.route('/backstage/blog/create/', methods=['POST'])
 def create():
@@ -359,7 +359,7 @@ def edit_blog_editfurther():
                 inf.write('<li><a href="' + d[0] + '">' + d[1] + '</a></li>\n')     
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success"
+    return "{success: Success}"
 
 @blogs_app.route('/backstage/blog/createCat/', methods=['GET'])
 def createCat():