Update 'clitools/exports/toRedis.py'

This commit is contained in:
alban 2020-10-13 19:54:06 +00:00
parent e3b1b255a3
commit 18aaa1b625
1 changed files with 1 additions and 0 deletions

1
clitools/exports/toRedis.py Executable file → Normal file
View File

@ -53,6 +53,7 @@ try:
line = line.replace("]",')')
line = "[{}]".format(line)
if line == "[]":
line="[(400.0,400.0,0),(400.0,400.0,0),(400.0,400.0,0),(400.0,400.0,0)]"
continue
if r.set(key,line)==True:
debug("exports::redis set("+str(key)+") to "+line)