diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/crud.py b/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/crud.py index 4c718aab7..c014545ba 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/crud.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/crud.py @@ -3,9 +3,9 @@ class DataStoreCRUD: @staticmethod - def create_instance(name: str, identifier: str, location: str, schema: dict[str, Any], description: str | None): + def create_instance(name: str, identifier: str, location: str, schema: dict[str, Any], description: str | None) -> None: raise Exception("must implement") - + @staticmethod def existing_data_stores() -> list[dict[str, Any]]: raise Exception("must implement") diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/json.py b/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/json.py index f6861b8eb..60a85982a 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/json.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/data_stores/json.py @@ -34,7 +34,7 @@ def _data_store_location_for_task(spiff_task: SpiffTask, identifier: str) -> str if _data_store_exists_at_location(location, identifier): return location location = ReferenceCacheService.upsearch(location, identifier, "data_store") - #if location is None or not _data_store_exists_at_location(location, identifier): + # if location is None or not _data_store_exists_at_location(location, identifier): # return None return location @@ -43,7 +43,7 @@ class JSONDataStore(BpmnDataStoreSpecification, DataStoreCRUD): # type: ignore """JSONDataStore.""" @staticmethod - def create_instance(name: str, identifier: str, location: str, schema: dict[str, Any], description: str | None): + def create_instance(name: str, identifier: str, location: str, schema: dict[str, Any], description: str | None) -> None: model = JSONDataStoreModel( name=name, identifier=identifier, @@ -54,7 +54,7 @@ def create_instance(name: str, identifier: str, location: str, schema: dict[str, ) db.session.add(model) db.session.commit() - + @staticmethod def existing_data_stores() -> list[dict[str, Any]]: data_stores = [] diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/data_store_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/data_store_controller.py index 2c757905f..a31a965ce 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/data_store_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/data_store_controller.py @@ -83,7 +83,7 @@ def data_store_create(body: dict) -> flask.wrappers.Response: "A valid JSON Schema is required when creating a new data store instance.", status_code=400, ) from e - + try: schema = json.loads(schema) except Exception as e: