mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 05:11:03 +00:00
[fix] pep8
This commit is contained in:
parent
c19b0899a4
commit
811515101b
1 changed files with 7 additions and 7 deletions
|
@ -83,13 +83,13 @@ def response(resp):
|
||||||
|
|
||||||
# convert filesize to byte
|
# convert filesize to byte
|
||||||
if filesize_multiplier == 'TB':
|
if filesize_multiplier == 'TB':
|
||||||
filesize = int(filesize * 1024*1024*1024*1024)
|
filesize = int(filesize * 1024 * 1024 * 1024 * 1024)
|
||||||
elif filesize_multiplier == 'GB':
|
elif filesize_multiplier == 'GB':
|
||||||
filesize = int(filesize * 1024*1024*1024)
|
filesize = int(filesize * 1024 * 1024 * 1024)
|
||||||
elif filesize_multiplier == 'MB':
|
elif filesize_multiplier == 'MB':
|
||||||
filesize = int(filesize * 1024*1024)
|
filesize = int(filesize * 1024 * 1024)
|
||||||
elif filesize_multiplier == 'kb':
|
elif filesize_multiplier == 'kb':
|
||||||
filesize = int(filesize * 1024)
|
filesize = int(filesize * 1024)
|
||||||
except:
|
except:
|
||||||
filesize = None
|
filesize = None
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ def response(resp):
|
||||||
'filesize': filesize,
|
'filesize': filesize,
|
||||||
'files': files,
|
'files': files,
|
||||||
'magnetlink': magnetlink,
|
'magnetlink': magnetlink,
|
||||||
'torrentfile':torrentfile,
|
'torrentfile': torrentfile,
|
||||||
'template': 'torrent.html'})
|
'template': 'torrent.html'})
|
||||||
|
|
||||||
# return results sorted by seeder
|
# return results sorted by seeder
|
||||||
|
|
Loading…
Reference in a new issue