Merge branch 'master' into test
# Conflicts: # locale/de/LC_MESSAGES/django.mo # locale/de/LC_MESSAGES/django.po
This commit is contained in:
@@ -149,8 +149,8 @@ def detail_view(request: HttpRequest, id: str):
|
||||
|
||||
# Precalculate logical errors between before- and after-states
|
||||
# Sum() returns None in case of no states, so we catch that and replace it with 0 for easier handling
|
||||
sum_before_states = before_states.aggregate(Sum("surface"))["surface__sum"] or 0
|
||||
sum_after_states = after_states.aggregate(Sum("surface"))["surface__sum"] or 0
|
||||
sum_before_states = ema.get_surface_before_states()
|
||||
sum_after_states = ema.get_surface_after_states()
|
||||
diff_states = abs(sum_before_states - sum_after_states)
|
||||
|
||||
ema.set_status_messages(request)
|
||||
|
||||
Reference in New Issue
Block a user