mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Merge branch 'feature/spec_files_wthout_db' of github.com:sartography/cr-connect-workflow into feature/spec_files_wthout_db
This commit is contained in:
commit
3ebffeed33
@ -36,6 +36,7 @@ def all_specifications(libraries=False,standalone=False):
|
|||||||
|
|
||||||
# return standard workflows (not library, not standalone)
|
# return standard workflows (not library, not standalone)
|
||||||
specs = spec_service.get_specs()
|
specs = spec_service.get_specs()
|
||||||
|
specs.append(spec_service.get_master_spec())
|
||||||
return WorkflowSpecInfoSchema(many=True).dump(specs)
|
return WorkflowSpecInfoSchema(many=True).dump(specs)
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,6 +60,8 @@ class WorkflowSpecService(FileSystemService):
|
|||||||
def get_spec(self, spec_id):
|
def get_spec(self, spec_id):
|
||||||
if not os.path.exists(FileSystemService.root_path()):
|
if not os.path.exists(FileSystemService.root_path()):
|
||||||
return # Nothing to scan yet. There are no files.
|
return # Nothing to scan yet. There are no files.
|
||||||
|
if spec_id == 'master_spec':
|
||||||
|
return self.get_master_spec()
|
||||||
with os.scandir(FileSystemService.root_path()) as category_dirs:
|
with os.scandir(FileSystemService.root_path()) as category_dirs:
|
||||||
for item in category_dirs:
|
for item in category_dirs:
|
||||||
category_dir = item
|
category_dir = item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user