mirror of
https://github.com/fotoente/MiCECo.git
synced 2024-10-22 15:09:08 +00:00
Won't post if there is no note or the only note is a MiCECo one
This commit is contained in:
parent
361b461066
commit
e8eb694284
1 changed files with 10 additions and 0 deletions
10
miceco.py
10
miceco.py
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue