Skip to content

Commit a81f63a

Browse files
committed
Updated web generation script
1 parent 5029651 commit a81f63a

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

web_generation_scripts/generate_lists.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
dimensions_list_file = './website/utils/dimensions_list.json'
99

1010
def generate_lists():
11-
1211
print('Generating lists...')
1312

1413
print(f'Accessing {indicators_dir} ...')
15-
indicators = [f for f in os.listdir(indicators_dir) if f.endswith('.json')]
14+
indicators = sorted([f for f in os.listdir(indicators_dir) if f.endswith('.json')])
1615

1716
print(f'Accessing {dimensions_dir} ...')
18-
dimensions = [f for f in os.listdir(dimensions_dir) if f.endswith('.json')]
17+
dimensions = sorted([f for f in os.listdir(dimensions_dir) if f.endswith('.json')])
1918

2019
print(f'Checking {indicators_list_file} ...')
2120
if os.path.exists(indicators_list_file):

website/utils/dimensions_list.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[
2-
"functional_suitability.json",
3-
"sustainability.json",
4-
"safety.json",
5-
"fairness.json",
6-
"performance_efficiency.json",
7-
"reliability.json",
82
"compatibility.json",
9-
"maintainability.json",
3+
"fairness.json",
104
"flexibility.json",
5+
"functional_suitability.json",
116
"interaction_capability.json",
12-
"security.json"
7+
"maintainability.json",
8+
"performance_efficiency.json",
9+
"reliability.json",
10+
"safety.json",
11+
"security.json",
12+
"sustainability.json"
1313
]

website/utils/indicators_list.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
"no_critical_vulnerability.json",
3-
"no_leaked_credential.json",
42
"codemeta_completeness.json",
5-
"dependency_management.json"
3+
"dependency_management.json",
4+
"no_critical_vulnerability.json",
5+
"no_leaked_credential.json"
66
]

0 commit comments

Comments
 (0)