diff options
author | Sunil Shetye | 2025-02-04 16:27:01 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-02-04 16:41:02 +0530 |
commit | 8efa64ab54c116b14c4bac5d23ec56e037c57742 (patch) | |
tree | 308b44bd221e8fa76779fa6f049e021412e8bfd9 | |
parent | 3d4bca7df0ce5b20e2f8678593a54818ffcaaee9 (diff) | |
download | Common-Interface-Project-8efa64ab54c116b14c4bac5d23ec56e037c57742.tar.gz Common-Interface-Project-8efa64ab54c116b14c4bac5d23ec56e037c57742.tar.bz2 Common-Interface-Project-8efa64ab54c116b14c4bac5d23ec56e037c57742.zip |
give meaningful name to directory
-rw-r--r-- | blocks/.dockerignore | 2 | ||||
-rw-r--r-- | blocks/simulationAPI/views.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/blocks/.dockerignore b/blocks/.dockerignore index c4d35a5a..452b361b 100644 --- a/blocks/.dockerignore +++ b/blocks/.dockerignore @@ -18,6 +18,7 @@ tags .xcosblocks.txt scilab-log-*.txt U*.sci +*.xcos *.xml xcosblocks.py Xcos/xcosblocks.py @@ -27,3 +28,4 @@ blocks/xcosblocks/xcosblocks.py file_storage/* !file_storage/uploads file_storage/uploads/* +media/uploads/* diff --git a/blocks/simulationAPI/views.py b/blocks/simulationAPI/views.py index 1d5d65f0..efbb2709 100644 --- a/blocks/simulationAPI/views.py +++ b/blocks/simulationAPI/views.py @@ -92,7 +92,7 @@ class XmlSave(APIView): # Update the request data to include the file path data = request.data.copy() data['file_path'] = file_path - filename = CreateXcos(data['file_path'], '{}', 'abcd') + filename = CreateXcos(data['file_path'], '{}', 'saves') with open(filename, 'r') as file: filecontent = file.read() |