Skip to content

Commit c77fbdb

Browse files
committed
Ensure function name is always saved to json
1 parent 65f155e commit c77fbdb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = 'setuptools.build_meta'
88

99
[project]
1010
name = "ratapi"
11-
version = "1.0.0"
11+
version = "1.0.1.dev0"
1212
description = "Python extension for the Reflectivity Analysis Toolbox (RAT)"
1313
readme = "README.md"
1414
requires-python = ">=3.10"

‎ratapi/project.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,8 @@ def make_custom_file_dict(item):
961961
"filename": item.filename,
962962
"language": item.language,
963963
"path": str(item.path),
964+
"function_name": item.function_name,
964965
}
965-
if item.name != item.function_name:
966-
file_dict["function_name"] = item.function_name
967966

968967
return file_dict
969968

0 commit comments

Comments
 (0)