From 555d37bc9128d22ebbca888531a4c3d29a22ad12 Mon Sep 17 00:00:00 2001 From: manetta Date: Sun, 7 Mar 2021 11:46:41 +0100 Subject: [PATCH] updating the feed.rss template, hardcoding the link --- LogBot/feed.rss | 2 +- LogBot/logbot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LogBot/feed.rss b/LogBot/feed.rss index afb11fd..57f1a0d 100644 --- a/LogBot/feed.rss +++ b/LogBot/feed.rss @@ -7,7 +7,7 @@ {{ date }} {% for x, post in db["messages"].items() %} - + {{ title }} {{ log_path }}#{{ x }} {{ post }} LogBot diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 7a1bb80..d105510 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -101,7 +101,7 @@ class Logbot(Bot): """Write new log to the file system.""" template = jinja2.Template(open("template.html").read()) room_name = self._parse_room_name(message.room) - log_path = os.path.join(self.output, room_name, "index.html") + log_path = os.path.join("https://vvvvvvaria.org/logs/", room_name, "index.html") # hard-coding the URL for now with open(log_path, "w") as out: html = template.render( title=self.db[message.room]["title"],