Commit ac4a89bf authored by Jakob Marten's avatar Jakob Marten
Browse files

Add tododododos

parent 688bdef5
......@@ -292,13 +292,16 @@ class ProtocolPad(BasePad):
pass
def uploadToGrav(self):
# TODO: better file management
if not os.path.exists(self.DEFAULT_RAW_PATH()):
raise FileNotFoundError(f"{self.DEFAULT_RAW_PATH()} doesn't exist")
self.rawPath = self.DEFAULT_RAW_PATH()
lines_new = []
# TODO: move conversion to another moethod?
with open(self.rawPath, "r", encoding="utf-8") as f:
lines = f.read().split("\n")
tops = []
# TODO: better top filter?
for l in lines:
if l.startswith("## "):
l = l[3:]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment