From 1ccae03d1cb363a7cfbc7217ad8fb451f2ed1085 Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 17 Feb 2021 17:06:36 +0100 Subject: [PATCH] room_path is almost correct --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index df39aa8..9a8930e 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -22,7 +22,7 @@ def del_from_db(self, message, key): def write_log(self, message): template = jinja2.Template(open('template.html').read()) - log_path = os.path.join(output, message.room, 'index.html') + log_path = os.path.join(self.room_path, 'index.html') with open(log_path,'w') as out: html = template.render(title=self.db[message.room]['title'], db=self.db[message.room]['messages']) out.write(html)