refactor settings

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-04 00:04:35 -03:00
commit 0a5ad3b06d
23 changed files with 109 additions and 89 deletions

View file

@ -61,7 +61,7 @@ def update_flow(
if not db_flow:
raise HTTPException(status_code=404, detail="Flow not found")
flow_data = flow.dict(exclude_unset=True)
if settings.remove_api_keys:
if settings.REMOVE_API_KEYS:
flow_data = remove_api_keys(flow_data)
for key, value in flow_data.items():
setattr(db_flow, key, value)