Added WHERE clause for making sure started <> 0.

This commit is contained in:
Jeremy Fincher 2003-09-07 08:09:23 +00:00
parent c2f73da997
commit 4ca8f91fa9

View File

@ -163,7 +163,7 @@ class FunDB(callbacks.Privmsg):
""" """
cursor = self.db.cursor() cursor = self.db.cursor()
cursor.execute("""SELECT started, ended FROM uptime cursor.execute("""SELECT started, ended FROM uptime
WHERE ended NOTNULL WHERE started <> 0 AND ended NOTNULL
ORDER BY ended-started DESC""") ORDER BY ended-started DESC""")
L = [] L = []
lenSoFar = 0 lenSoFar = 0