index : logbot | |
Archlinux32 log bot | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | logbot.py | 3 |
@@ -347,6 +347,9 @@ class Logbot(SingleServerIRCBot): # 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) # Append date log append_line("%s/index.html" % chan_path, '<a href="%s.html">%s</a>' % (date, date)) |