Commit graph

6 commits

Author SHA1 Message Date
Christoph Lienhard d414b95c1c
Fix several smaller problems
* adapt for structure change in gql backend (e.g. id -> rowId)
* display questions not rowId dependent anymore
* fixed calculation error if both, party and user, selected "skipped"
* fixed problems occuring when a candidate hasn't answered all questions (yet)
2020-12-31 21:13:21 +01:00
Christoph Lienhard f01d492d95 Fix calculation of scores
With this commit two calculation errors are fixed
 * the score in the case partyPosition = 'negative' while userPosition = 'neutral' shouldn't be MIN_POINTS but rather BASE_POINTS.
 * the totalScoredPoints (now "totalMaxPoints") should be independent of any party-positions which it wasn't.

To minimize errors in this area in the future tests are added
which are based on the official Rechenmodel of the bpb.
To that end the score calculation logic was refactored
 and moved from results.vue to scoring.js, too.

(cherry picked from commit 2d246fefbc4730ca5f7a4224325084a98f1c41f0)
2020-06-27 10:32:46 +02:00
Moritz Kröger aaa10f3fa0 Updated dataset and made data handling in components more robust 2019-04-26 12:19:05 +01:00
Moritz Kröger f66c36e583 Added back button to euromat 2017-08-14 22:28:12 +02:00
Moritz Kröger af58bd298a Refactored scoring logic 2017-08-13 23:11:48 +02:00
Moritz Kröger b21fe3f9df Added calculation model 2017-08-13 21:42:02 +02:00