Minor fix to handle empty songkick location on artist.html

This commit is contained in:
rembo10
2014-03-28 11:16:17 -07:00
parent 84aa80c93e
commit e69e391a33

View File

@@ -176,7 +176,9 @@
songkick_filter_enabled = "false"
if not headphones.SONGKICK_LOCATION:
headphones.SONGKICK_LOCATION = "none"
songkick_location = "none"
else:
songkick_location = headphones.SONGKICK_LOCATION
if headphones.SONGKICK_ENABLED:
songkick_enabled = "true"
@@ -197,7 +199,7 @@
if( ${songkick_filter_enabled} ) {
data.resultsPage.results.event = $.grep(data.resultsPage.results.event, function(element,index){
return element.venue.metroArea.id == ${headphones.SONGKICK_LOCATION};
return element.venue.metroArea.id == ${songkick_location};
});
}