Skip to content

Commit

Permalink
Fixes loading from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Jun 16, 2011
1 parent 9ccdd84 commit 184412d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Song.py
Expand Up @@ -249,8 +249,8 @@ def __init__(self, infoFileName, songLibrary = DEFAULT_LIBRARY):
if self.logUneditedMidis == 1:
Log.debug("notes-unedited.mid not found, using notes.mid - " + self.name)
self.noteFileName = os.path.join(os.path.dirname(self.fileName), notefile)
for part in self.getParts():

for part in parts.values():
self.getScores(part)

#stump: metadata caching
Expand All @@ -277,6 +277,7 @@ def __init__(self, infoFileName, songLibrary = DEFAULT_LIBRARY):
_songDB.execute('DELETE FROM `songinfo` WHERE `hash` = ?', [songhash])

#stump: preload this stuff...
self.getParts()
self.getSections()

#stump: Write this song's info into the cache.
Expand Down

0 comments on commit 184412d

Please sign in to comment.