Adjustments

This commit is contained in:
Fred Boniface 2023-06-03 21:05:10 +01:00
parent f6463883f6
commit d28c73308b
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ import mongo
REBUILD :bool = False # Set to True to force rebuild
log.out("pis.py: PIS Module Loaded", "DBUG")
file_location :str = "/app/data/pis/gwr.yaml" # Production & Testing
#file_location :str = "/home/fred.boniface/git/owlboard/db-manager/data/pis/gwr.yaml" # Local Development
#file_location :str = "/app/data/pis/gwr.yaml" # Production & Testing
file_location :str = "/home/fred.boniface/git/owlboard/db-manager/data/pis/gwr.yaml" # Local Development
def runUpdate():
if (not requiresUpdate()):
@ -37,7 +37,7 @@ def load(): # Programatically add a `toc` field to each entry.
with open(file_location, "r") as data:
try:
pis = yaml.safe_load(data)
print(pis)
#print(pis)
return pis["pis"]
except yaml.YAMLError as exc:
print(exc)