updated nix modules

This commit is contained in:
2023-08-04 23:10:47 +02:00
parent e4f94e04a6
commit fcd9326cf9
3 changed files with 86 additions and 30 deletions

View File

@ -6,7 +6,7 @@ from datetime import datetime
def loadSettings(path: str = f"{os.path.expanduser('~')}/.config/dyn-gandi/config.json") -> dict:
# TODO: check integrity
# TODO: check integrity of the config file
try:
with open(path, 'r') as file:
# Read if the API keys are path to files
@ -26,11 +26,6 @@ def loadSettings(path: str = f"{os.path.expanduser('~')}/.config/dyn-gandi/confi
# TODO log error and remove code below (do not create an unwanted config)
def anewfunction():
for i, key in range(12):
print(i)
def log(logline: str, path: str = './log.txt') -> None:
# Appends logline at the end of the file file with a timestamp
with open(path, 'a') as file: