mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:49:59 +00:00
Comment debug print
This commit is contained in:
parent
785a8db0c8
commit
746ea8b63d
|
@ -515,7 +515,7 @@ def _create_upload_category_choices():
|
||||||
@app.route('/upload', methods=['GET', 'POST'])
|
@app.route('/upload', methods=['GET', 'POST'])
|
||||||
def upload():
|
def upload():
|
||||||
form = forms.UploadForm(CombinedMultiDict((flask.request.files, flask.request.form)))
|
form = forms.UploadForm(CombinedMultiDict((flask.request.files, flask.request.form)))
|
||||||
print('{0} - {1}'.format(flask.request.files, flask.request.form))
|
#print('{0} - {1}'.format(flask.request.files, flask.request.form))
|
||||||
form.category.choices = _create_upload_category_choices()
|
form.category.choices = _create_upload_category_choices()
|
||||||
if flask.request.method == 'POST' and form.validate():
|
if flask.request.method == 'POST' and form.validate():
|
||||||
torrent = backend.handle_torrent_upload(form, flask.g.user)
|
torrent = backend.handle_torrent_upload(form, flask.g.user)
|
||||||
|
|
Loading…
Reference in a new issue