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

frick forgot updating songs

parent 8fae2c78
......@@ -198,23 +198,25 @@ class SongController extends AbstractController
$song->setHasExtremeDifficulty(false);
$song->setHasXDDifficulty(false);
foreach($trackData as $oneData) {
switch($oneData->difficultyType) {
case 2:
$song->setHasEasyDifficulty(true);
break;
case 3:
$song->setHasNormalDifficulty(true);
break;
case 4:
$song->setHasHardDifficulty(true);
break;
case 5:
$song->setHasExtremeDifficulty(true);
break;
case 6:
$song->setHasXDDifficulty(true);
break;
foreach($trackInfo->difficulties as $oneData) {
if($oneData->_active) {
switch($oneData->_difficulty) {
case 2:
$song->setHasEasyDifficulty(true);
break;
case 3:
$song->setHasNormalDifficulty(true);
break;
case 4:
$song->setHasHardDifficulty(true);
break;
case 5:
$song->setHasExtremeDifficulty(true);
break;
case 6:
$song->setHasXDDifficulty(true);
break;
}
}
}
} 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