fix: Prevent params overwrite for session_id key
This commit is contained in:
parent
ea2f1c54e8
commit
d738f4ca78
2 changed files with 4 additions and 3 deletions
|
|
@ -104,11 +104,11 @@ def load_starter_projects() -> list[tuple[Path, dict]]:
|
|||
logger.info(f"Loaded starter project {file}")
|
||||
return starter_projects
|
||||
|
||||
|
||||
def copy_profile_pictures():
|
||||
config_dir = get_storage_service().settings_service.settings.config_dir
|
||||
origin = Path(__file__).parent / "profile_pictures"
|
||||
target = Path(config_dir) / "profile_pictures"
|
||||
import pdb; pdb.set_trace
|
||||
|
||||
if not os.path.exists(origin):
|
||||
raise ValueError(f"The source folder '{origin}' does not exist.")
|
||||
|
|
@ -124,7 +124,6 @@ def copy_profile_pictures():
|
|||
logger.error(f"Error copying the folder: {e}")
|
||||
|
||||
|
||||
|
||||
def get_project_data(project):
|
||||
project_name = project.get("name")
|
||||
project_description = project.get("description")
|
||||
|
|
|
|||
|
|
@ -85,7 +85,9 @@ def update_params_with_load_from_db_fields(
|
|||
logger.info(f"Using environment variable {params[field]} for {field}")
|
||||
if key is None:
|
||||
logger.warning(f"Could not get value for {field}. Setting it to None.")
|
||||
params[field] = key
|
||||
|
||||
if field != "session_id":
|
||||
params[field] = key
|
||||
|
||||
except Exception as exc:
|
||||
logger.error(f"Failed to get value for {field} from custom component. Setting it to None. Error: {exc}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue