Commit 4fb1f4a
Fix issues with bonus xp (#1172)
* removed unnecessary logic
* change the submission passed into update_xp_bonus
* Update bonus xp when grading is published
* Add extra logic to check if xp is an integer
* Remove outdated comment
* Use coalesce to check if total_xp = nil
---------
Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>1 parent 0572fb0 commit 4fb1f4a
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
| 1297 | + | |
| 1298 | + | |
1297 | 1299 | | |
1298 | 1300 | | |
1299 | 1301 | | |
| |||
1493 | 1495 | | |
1494 | 1496 | | |
1495 | 1497 | | |
1496 | | - | |
1497 | 1498 | | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1499 | + | |
1501 | 1500 | | |
1502 | 1501 | | |
1503 | 1502 | | |
1504 | 1503 | | |
1505 | 1504 | | |
1506 | 1505 | | |
1507 | | - | |
| 1506 | + | |
1508 | 1507 | | |
1509 | 1508 | | |
1510 | 1509 | | |
1511 | | - | |
1512 | | - | |
1513 | 1510 | | |
1514 | 1511 | | |
1515 | 1512 | | |
| |||
1518 | 1515 | | |
1519 | 1516 | | |
1520 | 1517 | | |
1521 | | - | |
| 1518 | + | |
1522 | 1519 | | |
1523 | 1520 | | |
1524 | 1521 | | |
| |||
0 commit comments