fix parenthesis

This commit is contained in:
Ed Sandor 2020-12-12 10:13:46 -07:00
parent 519b02da79
commit 11bb04419b

View File

@ -60,7 +60,7 @@ IGLOGIN {callsign} {password}
offset = "OFFSET=" + str(pm["aprs_igate_offset"]) if "aprs_igate_offset" in pm else ""
comment = str(pm["aprs_igate_comment"]) if "aprs_igate_comment" in pm else "\"OpenWebRX APRS gateway\""
if(len(comment) > 0 and ((comment[0] != '"') or (comment[len(comment)-1] != '"')))):
if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))):
logger.info(comment)
comment = "\"" + comment + "\""
logger.info(comment)