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
9fef343c1b
Move torrent edit and upload into 'torrents' blueprint
...
Move supporting functions and variables into other files
* nyaa.views.torrents:
- _create_upload_category_choices
* nyaa.backend:
- get_category_id_map
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
4aac17ff23
Move 'before_request' into 'main' blueprint
...
Update comment in api_handler with new before_request location
2017-07-27 14:14:00 +03:00
Kfir Hadas
6f526de5ea
Lint
2017-06-07 19:38:19 +03:00
TheAMM
6592bec67c
Clean up info api script
...
And a tiny bit of the serverside endpoint.
2017-06-04 00:52:11 +03:00
kyamiko
570a06bd9e
API Info ( #157 )
...
Squashing 11 commits into one.
2017-06-03 23:57:53 +03:00
TheAMM
b60ec9ec0a
Failsafe in API for explicit nulls/Nones
2017-05-24 11:32:51 +03:00
nyaadev
1b76eaea35
fix race condition?
2017-05-23 15:18:17 +02:00
katnyaa
aa0d7f702f
api: Invalid JSON is a client-side error
2017-05-23 13:19:07 +01:00
TheAMM
f04c3e1cf3
Remove v1 upload api and update notice
2017-05-22 22:57:37 +03:00
katnyaa
159d5a5d9e
Fix lint errors
2017-05-22 15:12:17 +01:00
TheAMM
7066fb258e
Wait, that was no dict at all! Fix v1 api default
2017-05-22 16:54:02 +03:00
TheAMM
0e57378359
API: default to trusted, properly pass CSRF to UploadForm
2017-05-22 16:51:03 +03:00
TheAMM
a1c024a342
Re-enable CSRF token for upload & fix API CSRF handling
2017-05-22 16:29:14 +03:00
nyaadev
0a258d59e1
temporary ghetto import, will be removed once importing is done.
2017-05-22 01:49:02 +02:00
TheAMM
740be1a40a
Fix upload api handler: default to '' to conform better to WTForm
2017-05-21 12:41:34 +03:00
TheAMM
5408f3e7c4
Update upload api V2 + script for is_trusted
2017-05-21 12:28:37 +03:00
nyaadev
2a1f8fab87
pep8
2017-05-19 14:36:33 +02:00
kyamiko
e582c74efa
Fixed possible crash in api_handler.py
2017-05-18 00:31:28 -04:00
TheAMM
e5fce168a0
Upload API V2
2017-05-18 16:46:07 +03:00
aldacron
67758e1eef
updated example again
2017-05-18 00:27:27 -07:00
kyamiko
785a8db0c8
Updated api/upload
2017-05-17 23:56:36 -04:00
sharkykh
a3be6ee89f
PEP8 api_handler.py (E501)
...
E501 line too long
2017-05-16 12:43:33 +03:00
sharkykh
b0325bc681
PEP8 api_handler.py (E265, E266)
...
E265 block comment should start with '# '
E266 too many leading '#' for block comment
2017-05-16 12:43:33 +03:00
sharkykh
a79c0f8a93
PEP8 (a run of lint.sh)
2017-05-16 12:42:12 +03:00
nyaadev
00d65e312c
Initial commit.
2017-05-12 20:51:49 +02:00