Skip to content

Commit a75c668

Browse files
committed
fix: add shell block
1 parent ef29b92 commit a75c668

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def load_ratings():
6666
"dart": ("Dart", "dart"),
6767
"nim": ("Nim", "nim"),
6868
"sql": ("MySQL", "sql"),
69+
"sh": ("Shell", "bash"),
6970
}
7071

7172
mapping = {lang: name for name, lang in code_dict.values()}
@@ -144,8 +145,8 @@ def get_paths(dirs: str, m: int):
144145
num = num[:-3] + ".1"
145146
num = ".".join([x.strip(" ").lstrip("0") for x in num.split(".")])
146147
rat = -1
147-
if target_dir == 'lc' and num in rating_dict:
148-
rat = int(rating_dict[num]['Rating'])
148+
if target_dir == "lc" and num in rating_dict:
149+
rat = int(rating_dict[num]["Rating"])
149150
print(f"Rating: {num} {rat}")
150151
is_en = "README_EN" in p
151152
if is_en:

0 commit comments

Comments
 (0)