Template: Fix noscore_instrument setting
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 3 Nov 2012 19:51:00 +0000 (3 20:51 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 3 Nov 2012 19:53:09 +0000 (3 20:53 +0100)
generate_oly_score.py

index c614b03..d24b1cd 100755 (executable)
@@ -545,10 +545,10 @@ def generate_webshop_files (settings, lily_files, tex_files):
   #print pp.pprint(settings.score_names ())
 
   scores=[];
-  noscore_instruments = webshop_settings.get ("noscore_instruments", [])
 
   for s in settings.score_names ():
     score_settings = settings.get_score_settings (s);
+    noscore_instruments = score_settings.get ("noscore_instruments", [])
     for i in score_settings.get ("scores", []) + ["Instruments"] + score_settings.get ("instruments", []):
       if i in noscore_instruments:
         continue;