Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 624ea39edd - Show all commits

View File

@ -1678,7 +1678,7 @@ def formsemestre_edit_uecoefs(formsemestre_id, err_ue_id=None):
sum_coefs_by_ue_id = {} sum_coefs_by_ue_id = {}
for ue in ues: for ue in ues:
sum_coefs_by_ue_id[ue.id] = sum( sum_coefs_by_ue_id[ue.id] = sum(
modimpl.module.coefficient modimpl.module.coefficient or 0.0
for modimpl in modimpls for modimpl in modimpls
if modimpl.module.ue_id == ue.id if modimpl.module.ue_id == ue.id
) )