Skip to content

Commit 1ffd0d8

Browse files
points in schemas name
1 parent da89d3a commit 1ffd0d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/opengeodeweb_viewer/utils_functions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
from jsonschema import validate
77
from jsonschema.exceptions import ValidationError
88

9+
# Local application imports
10+
911

1012
def get_schemas_dict(path):
1113
json_files = os.listdir(path)
1214
schemas_dict = {}
1315
for json_file in json_files:
14-
filename = json_file.split(".")[0]
16+
last_point = json_file.rfind(".")
17+
filename = json_file[: -len(json_file) + last_point]
1518
with open(os.path.join(path, json_file), "r") as file:
1619
file_content = json.load(file)
1720
schemas_dict[filename] = file_content

0 commit comments

Comments
 (0)