widok
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jakub Kaniecki 2024-06-24 22:25:55 +02:00
parent aabd9ce429
commit db99642278

View File

@ -23,7 +23,7 @@ from jobposting.serializers import (
def remove_none_from_filters(filter: int|str, filter_type: str) -> int|str|None:
if filter_type == 'int':
if filter is not None or filter == '':
if filter is not None or filter != '':
try:
filter = int(filter)
except ValueError:
@ -33,7 +33,7 @@ def remove_none_from_filters(filter: int|str, filter_type: str) -> int|str|None:
else:
filter = None
else:
if filter is not None or filter == '':
if filter is not None or filter != '':
pass
else:
filter = None