index : logbot | |
Archlinux32 log bot | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-01-08 20:27:59 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-08 20:30:53 +0100 |
commit | dd0f57248d6889c19d841ededa78c6574c862fb8 (patch) | |
tree | 5a5d94ea8c4459f777e03796c22c199c9a0156e7 | |
parent | d11ca4ffc9ec5a896d974191dd449eeb9820c17c (diff) |
-rwxr-xr-x | logbot.py | 3 |
@@ -344,13 +344,14 @@ class Logbot(SingleServerIRCBot): date = strftime("%Y-%m-%d") log_path = "%s/%s/%s.html" % (LOG_FOLDER, channel, date) + rel_log_path = "%s.html" % (date) # Create the log date index if it doesnt exist if not os.path.exists(log_path): write_string(log_path, html_header.replace("%title%", "%s | Logs for %s" % (channel_title, date))) if os.path.islink("%s/latest.html" % chan_path): os.unlink("%s/latest.html" % chan_path) - os.symlink(log_path, "%s/latest.html" % chan_path) + os.symlink(rel_log_path, "%s/latest.html" % chan_path) # Append date log append_line("%s/index.html" % chan_path, '<a href="%s.html">%s</a>' % (date, date)) |