Fixing overdue check.
authorMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 07:20:12 +0000 (03:20 -0400)
committerMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 07:20:12 +0000 (03:20 -0400)
ceo/urwid/library.py

index ce7016c..4d6118f 100644 (file)
@@ -60,7 +60,7 @@ def overdue_books(data):
     Display a list of all books that are overdue.
     """
     oldest = datetime.today() - timedelta(weeks=2)
-    overdue = lib.Signout.select(lib.Signout.q.outdate<oldest)
+    overdue = lib.Signout.select(AND(lib.Signout.q.outdate<oldest, lib.Signout.q.indate==None))
 
     widgets = []