Skip to content

Commit

Permalink
Merge pull request #14 from NamelessGroup/fix-gesamt-ects
Browse files Browse the repository at this point in the history
include masterarbeit in gesamt ects
  • Loading branch information
Kr0nox authored Oct 21, 2024
2 parents 0a2a4db + e6df235 commit 117721d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const state = defineStore('state', {
},
// returns the sum of all lp
getTotalChosenLP(): number {
return [...this.choices.chosenFaecher.values()].map(i => Math.min(i.maxLP, (this.choices.chosenFachToModule.get(i.name)?.map(i => this.getModulById(i[0]).lp).reduce((a,b) => a+b, 0) ?? Infinity))).reduce((a,b)=> a+b, 0) + this.choices.ueqPunkte
return [...this.choices.chosenFaecher.values()].map(i => Math.min(i.maxLP, (this.choices.chosenFachToModule.get(i.name)?.map(i => this.getModulById(i[0]).lp).reduce((a,b) => a+b, 0) ?? Infinity))).reduce((a,b)=> a+b, 0) + this.choices.ueqPunkte + 30
},
getMaximumLP(): number {
return 120
Expand Down

0 comments on commit 117721d

Please sign in to comment.