Skip to content

Commit 806b6b2

Browse files
committed
fix 'multiples' detection, check for list instead of Sequence)
1 parent a01d894 commit 806b6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/_limiter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_multiples_count(request):
5858
vals = multiples.get(k)(k)
5959
if len(vals) >= 2:
6060
multiple_selection_allowed -= 1
61-
elif len(vals) and isinstance(vals, Sequence) and isinstance(vals[0], tuple):
61+
elif len(vals) and isinstance(vals, list) and isinstance(vals[0], tuple):
6262
# else we have one val which is a tuple, representing a range, and thus is a "multiple"
6363
multiple_selection_allowed -= 1
6464
except ValidationFailedException:

0 commit comments

Comments
 (0)