Commit 3f4fc313 authored by Andreas Heimann's avatar Andreas Heimann

frick forgot updating songs

parent 8fae2c78
...@@ -198,23 +198,25 @@ class SongController extends AbstractController ...@@ -198,23 +198,25 @@ class SongController extends AbstractController
$song->setHasExtremeDifficulty(false); $song->setHasExtremeDifficulty(false);
$song->setHasXDDifficulty(false); $song->setHasXDDifficulty(false);
foreach($trackData as $oneData) { foreach($trackInfo->difficulties as $oneData) {
switch($oneData->difficultyType) { if($oneData->_active) {
case 2: switch($oneData->_difficulty) {
$song->setHasEasyDifficulty(true); case 2:
break; $song->setHasEasyDifficulty(true);
case 3: break;
$song->setHasNormalDifficulty(true); case 3:
break; $song->setHasNormalDifficulty(true);
case 4: break;
$song->setHasHardDifficulty(true); case 4:
break; $song->setHasHardDifficulty(true);
case 5: break;
$song->setHasExtremeDifficulty(true); case 5:
break; $song->setHasExtremeDifficulty(true);
case 6: break;
$song->setHasXDDifficulty(true); case 6:
break; $song->setHasXDDifficulty(true);
break;
}
} }
} }
} catch(Exception $e) { } catch(Exception $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment