Commits

Cédric Bonhomme committed 7dd9dfc

Fixed: missing parameter name in tmpl.render().

  • Participants
  • Parent commits adb9932

Comments (0)

Files changed (1)

File source/pyAggr3g470r.py

         result = utils.change_feed_url(old_feed_url, new_feed_url)
         if result:
             tmpl = lookup.get_template("confirmation.html")
-            return tmpl.render("<p>The URL of the feed has been changed.</p>")
+            return tmpl.render(message="<p>The URL of the feed has been changed.</p>")
         else:
             return self.error("<p>Error when changing the URL of the feed.</p>")
 
         try:
             self.mongo.update_feed(feed_id, {"feed_title":new_feed_name})
             tmpl = lookup.get_template("confirmation.html")
-            return tmpl.render("<p>The name of the feed has been changed.</p>")
+            return tmpl.render(message="<p>The name of the feed has been changed.</p>")
         except:
             return self.error("<p>Error when changing the name of the feed.</p>")
 
         try:
             self.mongo.update_feed(feed_id, {"feed_image":new_feed_logo})
             tmpl = lookup.get_template("confirmation.html")
-            return tmpl.render("<p>The logo of the feed has been changed.</p>")
+            return tmpl.render(message="<p>The logo of the feed has been changed.</p>")
         except:
             return self.error("<p>Error when changing the logo of the feed.</p>")