Skip to content

Commit dd9cb71

Browse files
committed
fixing a bug
1 parent 33603b2 commit dd9cb71

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/profile_generation_script.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -545,20 +545,21 @@ def generate_types_cardianlity(g, prop):
545545
clean_expected_types.append(dict_definitions[i].split(":")[-1])
546546

547547
upper_case_expected_types = clean_expected_types
548-
for i in upper_case_expected_types:
549-
548+
for i in clean_expected_types:
550549
t = ""
551-
552550
for c in range(len(i)):
553551
if c == 0:
554552
t += i[c].upper()
555553
else:
556554
t += i[c]
557-
print(t)
558-
clean_expected_types.remove(i)
559-
clean_expected_types.append(t)
555+
upper_case_expected_types.remove(i)
556+
upper_case_expected_types.append(t)
560557

561-
print(Fore.MAGENTA + f"Expected Types : {clean_expected_types}" + Style.RESET_ALL)
558+
print(clean_expected_types)
559+
560+
print(
561+
Fore.MAGENTA + f"Expected Types : {upper_case_expected_types}" + Style.RESET_ALL
562+
)
562563

563564
print(Fore.RED + f"Cardinality = {cardianliy}" + Style.RESET_ALL)
564565

0 commit comments

Comments
 (0)