Skip to content

Commit

Permalink
QueryBuilder: Update noindex
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jun 11, 2024
1 parent 211b130 commit aeca6cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/querybuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ def query_hint(self):

@property
def noindex(self):
return (self.search is not None or len(self.tags) > 1 or len(self.types) > 1 or len(self.hide_flags) > 0 or
self.random or self.lucky or self.author or self.version or self.game or len(self.licenses) > 0)
return (self.search is not None or len(self.tags) > 1 or len(self.flags) > 1 or len(self.types) > 1 or
len(self.licenses) > 0 or len(self.hide_flags) > 0 or len(self.hide_tags) > 0 or self.random or
self.lucky or self.author or self.version or self.game or self.limit is not None)

def __init__(self, args, cookies: bool = False, lang: Optional[str] = None, emit_http_errors: bool = True):
self.emit_http_errors = emit_http_errors
Expand Down

0 comments on commit aeca6cb

Please sign in to comment.