Skip to content

Commit e167f9d

Browse files
committed
Code refactoring
1 parent 1a526af commit e167f9d

File tree

3 files changed

+144
-94
lines changed

3 files changed

+144
-94
lines changed

settings.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
"""
2+
This file contains important variables for site generation
3+
"""
4+
15
import json
26

37
OUTPUT_FOLDER = "docs/"
4-
info = None
8+
INFO = None
59

610
BLOG_CATEGORIES = ["main", "protocol"]
711

@@ -11,5 +15,5 @@
1115
"education": "Tutorials/Posts Flask related",
1216
}
1317

14-
with open("info.json", encoding="utf-8") as f:
15-
info = json.load(f)
18+
with open("INFO.json", encoding="utf-8") as f:
19+
INFO = json.load(f)

0 commit comments

Comments
 (0)