Skip to content

Commit

Permalink
Fix anzahlaufkleber filter to gte instead of gt
Browse files Browse the repository at this point in the history
Filter now matches form description to filter inclusive the provided
number of required participants.

Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
  • Loading branch information
0xpr03 committed Jun 4, 2019
1 parent a7193c9 commit d73290e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feedback/views/intern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def generate_letters(request):
elif 'anzahlaufkleber' in request.POST and request.POST['anzahlaufkleber'].isdigit():
anzahl = request.POST['anzahlaufkleber']
anzahl = int(anzahl)
veranst = Veranstaltung.objects.filter(semester=semester, evaluieren=True, anzahl__gt=anzahl).order_by('name')
veranst = Veranstaltung.objects.filter(semester=semester, evaluieren=True, anzahl__gte=anzahl).order_by('name')
else:
veranst = Veranstaltung.objects.filter(semester=semester, evaluieren=True, anzahl__gt=0).order_by('name')

Expand Down

0 comments on commit d73290e

Please sign in to comment.