Kfir Hadas
b992467dad
Apply isort & flake8 ( #312 )
...
* Update isort settings
* Apply import sorting (isort) on all files in nyaa/
* Fixed Flake8 errors in nyaa/ (see PR for list)
* Add isort to lint.sh and requirements.txt
2017-07-28 20:01:19 +03:00
Kfir Hadas
2424639bf9
Refactor routes.py
2017-07-27 14:14:00 +03:00
Kfir Hadas
9acdd14e81
Move /view/<int:torrent_id> route into 'torrents' blueprint
...
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas
eccb0ebdff
Move '/' and '/rss' routes into 'main' blueprint
...
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas
0887dde6fc
Move /user/<user_name> route into a blueprint
...
Move supporting functions and variables into other files
* nyaa.utils:
- cached_function
- chain_get
* nyaa.search:
- DEFAULT_MAX_SEARCH_RESULT
- DEFAULT_PER_PAGE
- SERACH_PAGINATE_DISPLAY_MSG
- _generate_query_string
2017-07-27 14:14:00 +03:00
Kfir Hadas
3913d8cea2
Move admin routes into blueprint
...
and update templates
Routes:
* /reports
* /adminlog
2017-07-27 14:14:00 +03:00
Kfir Hadas
f316353176
Move account routes into blueprint ( #292 )
...
and update templates,
and remove unused imports
Routes:
* /login
* /logout
* /register
* /profile
2017-07-27 14:14:00 +03:00
Kfir Hadas
911fbc317f
Move static routes into a blueprint
...
and update templates
Routes:
* /help
* /rules
* /xmlns/nyaa
* /about (commented out)
2017-07-27 14:14:00 +03:00