Use FTP_WAIT and add a Back link

This commit is contained in:
Chris Oliver 2010-12-11 16:43:01 -06:00
parent 65c3a13504
commit 9e178af3d6

View file

@ -105,6 +105,7 @@ html_header = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
</head> </head>
<body> <body>
<h1>%title%</h1> <h1>%title%</h1>
<a href="..">Back</a>
</body> </body>
</html> </html>
""" """
@ -189,7 +190,7 @@ class Logbot(SingleServerIRCBot):
self.count += 1 self.count += 1
if self.ftp and self.count > 25: if self.ftp and self.count > FTP_WAIT:
self.count = 0 self.count = 0
print "Uploading to FTP..." print "Uploading to FTP..."
for root, dirs, files in os.walk("logs"): for root, dirs, files in os.walk("logs"):