diff --git a/LogBot/logbot.py b/LogBot/logbot.py index cced24e..ddcbfe6 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -112,9 +112,8 @@ class Logbot(Bot): template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf with open(feed_path, "w") as out: feed = template.render( - log_path=os.path.join( - "https://vvvvvvaria.org/logs/", folder_name, "index.html" - ), # hardcoding the url now, self.baseurl would be helpful to have in the conf + log_path=os.path.join("https://vvvvvvaria.org/logs/", folder_name, "index.html"), # hardcoding the url now, self.baseurl would be helpful to have in the conf + feed_path=os.path.join("https://vvvvvvaria.org/logs/", folder_name, "feed.rss"), # hardcoding the url again title=self.db[message.room]["title"], db=self.db[message.room], date=date.strftime("%a, %d %b %Y %H:%M:%S +0100") # timezone is hardcoded now diff --git a/LogBot/template.rss b/LogBot/template.rss index 088956c..af8cdd8 100644 --- a/LogBot/template.rss +++ b/LogBot/template.rss @@ -5,7 +5,7 @@ {{ log_path }} Collective log writing using XMPP chat groups and LogBot. {{ date }} - + {% for x, post in db["messages"].items() %} {{ title }}