Spaces:
Build error
Build error
Download tecnicas/utils/delete_data_session.py from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/utils/delete_data_session.py
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/utils/delete_data_session.py
-
curl -L -o delete_data_session.py https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/utils/delete_data_session.py
309 Bytes
| from django.http import HttpRequest | |
| from tecnicas.constants import FORMS_TO_CREATE_SESSION | |
| from .personal_errors import general_error | |
| def deleteDataSession(request: HttpRequest): | |
| for key in FORMS_TO_CREATE_SESSION: | |
| if key in request.session: | |
| del request.session[key] | |
| return True | |