mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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