Jason %!s(int64=2) %!d(string=hai) anos
pai
achega
d600cf0241
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)      
         inf.write(result)      
 
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success " + result
+    return "{success: Success " + result + "}"
 
 
 @blogs_app.route('/backstage/blog/create/', methods=['POST'])
 @blogs_app.route('/backstage/blog/create/', methods=['POST'])
 def create():
 def create():
@@ -359,7 +359,7 @@ def edit_blog_editfurther():
                 inf.write('<li><a href="' + d[0] + '">' + d[1] + '</a></li>\n')     
                 inf.write('<li><a href="' + d[0] + '">' + d[1] + '</a></li>\n')     
 
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success"
+    return "{success: Success}"
 
 
 @blogs_app.route('/backstage/blog/createCat/', methods=['GET'])
 @blogs_app.route('/backstage/blog/createCat/', methods=['GET'])
 def createCat():
 def createCat():