Fixed stupid failed tests in Notes. I'm retard.

This commit is contained in:
Jeremy Fincher 2003-09-05 19:01:02 +00:00
parent dd6f5de32e
commit 0f843dd651

View File

@ -150,8 +150,7 @@ class Notes(callbacks.Privmsg):
notes.to_id=users.id AND
notified=0""", name)
unnotified = int(cursor.fetchone()[0])
if unnotified == 0:
return
if unnotified != 0:
cursor.execute("""SELECT COUNT(*) FROM notes, users
WHERE users.name=%s AND
notes.to_id=users.id AND