Won't post if there is no note or the only note is a MiCECo one

This commit is contained in:
Fotoente 2022-03-29 11:36:02 +02:00
parent 361b461066
commit e8eb694284

View file

@ -150,6 +150,16 @@ while True:
else: else:
break break
if len(noeList) == =:
print("Nothing to count, exiting script.")
sys.exit(1)
if len(noteList) == 1:
if noteList[0]["text"].find(chr(8203) + chr(8203) + chr(8203)) > 0:
print("Only note is MiCECo note.")
print("Nothing to count, exiting script")
sys.exit(1)
for element in noteList: for element in noteList:
if element["text"] is None: # Skip Notes without text if element["text"] is None: # Skip Notes without text
print("Skip Note " + element["id"] + " without Text\nTime noted: " + element["createdAt"]) print("Skip Note " + element["id"] + " without Text\nTime noted: " + element["createdAt"])