http://code.google.com/p/autoqueue/source/detail?r=284
Modified:
/trunk/mirage.py
=======================================
--- /trunk/mirage.py Sat Sep 26 05:52:06 2009
+++ /trunk/mirage.py Sat Sep 26 05:57:15 2009
@@ -415,8 +415,8 @@
"SELECT COUNT(*) FROM distance WHERE track_1 = ?", (trackid,))
l = cursor.fetchone()[0]
self.close_database_connection(connection)
- if l >= no:
- return True
+ if l < no:
+ return False
connection = self.get_database_connection()
cursor = connection.execute(
"SELECT COUNT(*) FROM distance WHERE track_2 = ? AND distance
< "
@@ -424,9 +424,9 @@
(trackid, trackid))
l = cursor.fetchone()[0]
self.close_database_connection(connection)
- if l >= no:
- return True
- return False
+ if l > no:
+ return False
+ return True
def get_tracks(self, exclude_ids=None):
if not exclude_ids: