Closed yongwen closed 10 years ago
The predicate changed from using the level's name to using the level's priority. So now the predicate should look like 'submitted_some_of_level(2, 1) and submitted_action("power-energy")' if "Level 1" has a priority of 1.
used submitted_some_of_level(2, 1) and submitted_action("power-energy") in hpu's test instance, it does not seems to work either.
the current predicate syntax is submitted_some_of_level(level_priority, count), so the condition should be: submitted_some_of_level(1, 2). update hpu instance and mopsa, working now.
had to fix the predicate code to filter by grid.action: c += user.actionmember_set.filter(action=grid.action).count()
HPU's instance's level 2 has the unlock condition: submitted_some_of_level(2, "Level 1") and submitted_action("power-energy") it does not seems to unlock after the condition is met.
Can reproduce on mopsa.