mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01: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