You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2024. It is now read-only.
After generating a default config yaml file with: osd2f --generate-current-config config.yaml
There is this section for the upload page:
...
upload_page:
blocks: []
consent_popup:
accept_button: I consent
decline_button: I do not consent
end_text: By clicking below, you consent to these terms...
lead: This box explains the conditions of your donation
...
In the app there is no route defined for upload_page but there is for upload.
Suggestion: in default_content_settings change upload_page to upload.
The text was updated successfully, but these errors were encountered:
When changing: upload_page to upload in the config.yaml.
An error gets thrown:
File "/home/turbo/d3i/osd2f/env/lib/python3.10/site-packages/hypercorn/asyncio/lifespan.py", line 84, in asgi_send
raise LifespanFailureError("startup", message["message"])
hypercorn.utils.LifespanFailureError: Lifespan failure in startup. '1 validation error for ContentSettings
upload_page
field required (type=value_error.missing)'
So I think the solution is then to change the route from: @app.route("/upload", methods=["GET", "POST"]) to @app.route("/upload_page", methods=["GET", "POST"])
After generating a default config yaml file with:
osd2f --generate-current-config config.yaml
There is this section for the upload page:
In the app there is no route defined for
upload_page
but there is forupload
.Suggestion: in
default_content_settings
changeupload_page
toupload
.The text was updated successfully, but these errors were encountered: