Skip to content

Commit

Permalink
Merge pull request #3 from anjanaw/dev
Browse files Browse the repository at this point in the history
test: reuse
  • Loading branch information
anjanaw authored Oct 12, 2023
2 parents 076c6da + d8a5271 commit e33decf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cbrcycle/reuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def reuse_cases(data):
# get reuse type
reuse_type = data.get('reuse_type', None)
reuse_feature = data.get('reuse_feature', None)
print(data)
if reuse_type is None or reuse_feature is None:
return None
elif reuse_type.startswith('_'): # import custom module for use operation
module_name = 'custom_reuse_scripts.' + reuse_type
reuse_module = importlib.import_module(module_name)
# execute and return
print(reuse_feature)
if reuse_feature is 'transform':
return reuse_module.transform_adapt(data)
elif reuse_feature is 'applicability':
Expand Down

0 comments on commit e33decf

Please sign in to comment.