We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da89d3a commit 1ffd0d8Copy full SHA for 1ffd0d8
src/opengeodeweb_viewer/utils_functions.py
@@ -6,12 +6,15 @@
6
from jsonschema import validate
7
from jsonschema.exceptions import ValidationError
8
9
+# Local application imports
10
+
11
12
def get_schemas_dict(path):
13
json_files = os.listdir(path)
14
schemas_dict = {}
15
for json_file in json_files:
- filename = json_file.split(".")[0]
16
+ last_point = json_file.rfind(".")
17
+ filename = json_file[: -len(json_file) + last_point]
18
with open(os.path.join(path, json_file), "r") as file:
19
file_content = json.load(file)
20
schemas_dict[filename] = file_content
0 commit comments