diff --git a/dejavu/database.py b/dejavu/database.py old mode 100644 new mode 100755 index 018ddd4..78b1237 --- a/dejavu/database.py +++ b/dejavu/database.py @@ -260,14 +260,13 @@ class SQLDatabase(Database): """ return self.query(None) - def insert_hashes(self, hashes): + def insert_hashes(self, sid, hashes): """ Insert series of hash => song_id, offset values into the database. """ - # TODO: Fix this when hashes will be a new format. values = [] - for hash, (sid, offset) in hashes: + for hash, offset in hashes: values.append((hash, sid, offset)) with self.cursor() as cur: