found bug in posting to ssb... not fixed but commented

This commit is contained in:
trav 2022-08-26 00:35:45 -04:00
parent b0b13a0769
commit a00fd5a670

View File

@ -40,7 +40,7 @@ def addToDB(pathToImage, pathToDB,composite):
def addToSSB(pathToImage, pathToDB, SSBidentify): def addToSSB(pathToImage, pathToDB, SSBidentify):
#unless you say don't post to ssb, post to ssb #unless you say don't post to ssb, post to ssb
if SSBidentify != -1: if SSBidentify != -1:
#SEND TO SSB! WOOOO #SEND TO SSB! WOOOO
@ -54,6 +54,9 @@ def addToSSB(pathToImage, pathToDB, SSBidentify):
# get the ssb json from the bash command we just ran # get the ssb json from the bash command we just ran
newssb=result.stdout.read() newssb=result.stdout.read()
print(newssb) 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 #convert string to object
json_object = json.loads(newssb) json_object = json.loads(newssb)