diff --git a/addtoDB.py b/addtoDB.py index a5fabdd..ce6127f 100644 --- a/addtoDB.py +++ b/addtoDB.py @@ -40,7 +40,7 @@ def addToDB(pathToImage, pathToDB,composite): def addToSSB(pathToImage, pathToDB, SSBidentify): - + #unless you say don't post to ssb, post to ssb if SSBidentify != -1: #SEND TO SSB! WOOOO @@ -54,6 +54,9 @@ def addToSSB(pathToImage, pathToDB, SSBidentify): # get the ssb json from the bash command we just ran newssb=result.stdout.read() print(newssb) + + # ADD HERE A CHECK that newssb is _anything_ if ssb-server isn't running that may show as garbage that will crash the program + #convert string to object json_object = json.loads(newssb)