[autoqueue] r284 committed - ehhh, the other way around, of course

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 26, 2009, 8:58:09 AM9/26/09
to auto...@googlegroups.com
Revision: 284
Author: this...@gmail.com
Date: Sat Sep 26 05:57:15 2009
Log: ehhh, the other way around, of course

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:

Reply all
Reply to author
Forward
0 new messages