From 61346f03d4f79fc049adb22d611926c12951541d Mon Sep 17 00:00:00 2001 From: manetta Date: Sun, 7 Mar 2021 11:49:55 +0100 Subject: [PATCH] oops, wrong log path edited --- LogBot/logbot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index d105510..20edd5d 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("https://vvvvvvaria.org/logs/", room_name, "index.html") # hard-coding the URL for now + log_path = os.path.join(self.output, room_name, "index.html") with open(log_path, "w") as out: html = template.render( title=self.db[message.room]["title"], @@ -117,7 +117,8 @@ class Logbot(Bot): date = datetime.now() with open(feed_path, "w") as out: feed = template.render( - log_path=os.path.join(self.output, room_name, "index.html"), + # hard-coding the URL for now + log_path=os.path.join("https://vvvvvvaria.org/logs/", room_name, "index.html"), title=self.db[message.room]["title"], db=self.db[message.room], date=date.strftime("%A, %d. %B %Y %I:%M%p")