Adjustments
This commit is contained in:
parent
f6463883f6
commit
d28c73308b
@ -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)
|
||||
|
Reference in New Issue
Block a user