Skip to content

Commit

Permalink
include masterarbeit in gesamt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Sep 20, 2024
1 parent c46b1e3 commit e6df235
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 e6df235

Please sign in to comment.