mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Fix PEP8 warnings for Nyaa.py
This commit is contained in:
parent
a8832574fa
commit
e202c6fbec
@ -43,6 +43,7 @@ def int_or_zero(num):
|
||||
return int(num)
|
||||
return 0
|
||||
|
||||
|
||||
# get multiplier to convert torrent size to bytes
|
||||
def get_filesize_mul(suffix):
|
||||
return {
|
||||
@ -57,6 +58,7 @@ def get_filesize_mul(suffix):
|
||||
'TIB': 1024 ** 4
|
||||
}[str(suffix).upper()]
|
||||
|
||||
|
||||
# do search-request
|
||||
def request(query, params):
|
||||
query = urlencode({'term': query})
|
||||
|
Loading…
Reference in New Issue
Block a user