mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
Apply code suggestions
Co-Authored-By: Trenton H <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
parent
88e6f8abf6
commit
b7540fab58
1 changed files with 1 additions and 4 deletions
|
|
@ -269,10 +269,7 @@ class DelayedQuery:
|
||||||
return query.Or(user_criterias) if len(user_criterias) > 0 else None
|
return query.Or(user_criterias) if len(user_criterias) > 0 else None
|
||||||
|
|
||||||
def evalBoolean(self, val):
|
def evalBoolean(self, val):
|
||||||
if val == "false" or val == "0":
|
return val.lower() in {"true", "1"}
|
||||||
return False
|
|
||||||
if val == "true" or val == "1":
|
|
||||||
return True
|
|
||||||
|
|
||||||
def _get_query_sortedby(self):
|
def _get_query_sortedby(self):
|
||||||
if "ordering" not in self.query_params:
|
if "ordering" not in self.query_params:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue