From d8892cef9975637107208c376537896190f4a1b7 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 15:17:30 +0100 Subject: [PATCH] harcoding the feed url, not the log url --- LogBot/logbot.py | 5 ++--- LogBot/template.rss | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 }}