forked from varia/bots
room_path is almost correct
This commit is contained in:
parent
0a29cd8fef
commit
1ccae03d1c
@ -22,7 +22,7 @@ def del_from_db(self, message, key):
|
|||||||
|
|
||||||
def write_log(self, message):
|
def write_log(self, message):
|
||||||
template = jinja2.Template(open('template.html').read())
|
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:
|
with open(log_path,'w') as out:
|
||||||
html = template.render(title=self.db[message.room]['title'], db=self.db[message.room]['messages'])
|
html = template.render(title=self.db[message.room]['title'], db=self.db[message.room]['messages'])
|
||||||
out.write(html)
|
out.write(html)
|
||||||
|
Loading…
Reference in New Issue
Block a user