#433, 435 work - handle empty in DHCPLSS, email templates fixes

This commit is contained in:
Jokob-sk
2023-09-12 20:32:09 +10:00
parent 78a87c4ed0
commit 0f56f06937
4 changed files with 28 additions and 21 deletions

View File

@@ -33,6 +33,13 @@ pialertConfigFile = read_config_file()
timeZoneSetting = pialertConfigFile['TIMEZONE']
timeZone = pytz.timezone(timeZoneSetting)
# -------------------------------------------------------------------
def handleEmpty(input):
if input == '' or None:
return 'null'
else:
return input
# -------------------------------------------------------------------
def decodeBase64(inputParamBase64):