#522: Built core part of gmail trigger

This commit is contained in:
frikky
2021-09-30 01:26:56 +02:00
parent d1e4f409a6
commit 6a8d97fb0c
7 changed files with 820 additions and 88 deletions
+1 -1
View File
@@ -1647,13 +1647,13 @@ class AppBase:
# Suboptimal cleanup script for BOdy parsing of OpenAPI
# Should have a regex which looks for the value, then goes out and cleans up the key
def recurse_cleanup_script(data):
deletekeys = []
try:
if not isinstance(data, dict):
newvalue = json.loads(data)
else:
newvalue = data
deletekeys = []
for key, value in newvalue.items():
#print("%s: %s" % (key, value))
if isinstance(value, str) and len(value) == 0: