update requirements.txt

This commit is contained in:
SowinskiBraeden committed 2025-03-13 17:21:48 -07:00
1 parent 83f700fd31
commit 0c8120a9a5
4 files changed
+29 -11

No files matched your search

+6 -5
View File
@@ -5,21 +5,22 @@ from prettytable import PrettyTable
import os, shutil
from datetime import datetime
def pretty_table(dct: Dict, title: str, add: str=""):
def pretty_table(dct: Dict, title: str, add: str="") -> None:
table = PrettyTable()
for c in dct.keys():
table.add_column(c, [])
table.add_column(c, [])
table.add_row(['\n'.join(dct[c]) for c in dct.keys()])
table.align = "l"
with open(f"./boards/{title}.txt", "a") as file:
if add != "":
file.write(f"{add}\n")
file.write(table.__str__())
file.write("\n\n")
# with open(f"./boards/{title}", "ab") as file:
# pickle.dump(dct, file)
def setupDir() -> None:
if not os.path.exists("./boards"):
os.makedirs("./boards")