mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added WHERE clause for making sure started <> 0.
This commit is contained in:
parent
c2f73da997
commit
4ca8f91fa9
@ -163,7 +163,7 @@ class FunDB(callbacks.Privmsg):
|
||||
"""
|
||||
cursor = self.db.cursor()
|
||||
cursor.execute("""SELECT started, ended FROM uptime
|
||||
WHERE ended NOTNULL
|
||||
WHERE started <> 0 AND ended NOTNULL
|
||||
ORDER BY ended-started DESC""")
|
||||
L = []
|
||||
lenSoFar = 0
|
||||
|
Loading…
Reference in New Issue
Block a user