mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-14 15:49:02 +00:00
Merge pull request #251 from sharkykh/tests
INITIAL UNIT TESTING FUCK YEAH
This commit is contained in:
@@ -70,4 +70,4 @@ assets = Environment(app)
|
||||
# output='style.css', depends='**/*.scss')
|
||||
# assets.register('style_all', css)
|
||||
|
||||
from nyaa import routes # noqa
|
||||
from nyaa import routes # noqa E402
|
||||
|
||||
@@ -322,7 +322,11 @@ def v2_api_info(torrent_id_or_hash):
|
||||
|
||||
'information': torrent.information,
|
||||
'description': torrent.description,
|
||||
'stats': {'seeders': torrent.stats.seed_count, 'leechers': torrent.stats.leech_count, 'downloads': torrent.stats.download_count},
|
||||
'stats': {
|
||||
'seeders': torrent.stats.seed_count,
|
||||
'leechers': torrent.stats.leech_count,
|
||||
'downloads': torrent.stats.download_count
|
||||
},
|
||||
'filesize': torrent.filesize,
|
||||
'files': files,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user