librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1546] actually do that the way that makes sense with


From: Clint Adams
Subject: [Librefm-commits] [1546] actually do that the way that makes sense with the current schema
Date: Wed, 13 May 2009 22:47:02 +0000

Revision: 1546
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1546
Author:   clint
Date:     2009-05-13 22:47:02 +0000 (Wed, 13 May 2009)
Log Message:
-----------
actually do that the way that makes sense with the current schema

Modified Paths:
--------------
    trunk/scripts/import-jamendo.py

Modified: trunk/scripts/import-jamendo.py
===================================================================
--- trunk/scripts/import-jamendo.py     2009-05-13 22:43:41 UTC (rev 1545)
+++ trunk/scripts/import-jamendo.py     2009-05-13 22:47:02 UTC (rev 1546)
@@ -388,7 +388,7 @@
                        if track:
                                self.cursor.execute("SELECT tag FROM Tags WHERE 
tag = %s AND artist = %s AND album = %s AND track = %s", (tag, artist, album, 
track))
                        else:
-                               self.cursor.execute("SELECT tag FROM Tags WHERE 
tag = %s AND artist = %s AND album = %s AND track IS NULL", (tag, artist, 
album))
+                               self.cursor.execute("SELECT tag FROM Tags WHERE 
tag = %s AND artist = %s AND album = %s AND track = ''", (tag, artist, album))
                        return self.cursor.rowcount != 0
                except:
                        return False





reply via email to

[Prev in Thread] Current Thread [Next in Thread]