mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Make the counter migration safer.
This commit is contained in:
parent
5de3de12f0
commit
98307aec0d
@ -6,7 +6,7 @@ if __name__ == '__main__':
|
||||
if vis.type == 'COUNTER':
|
||||
options = json.loads(vis.options)
|
||||
print "Before: ", options
|
||||
if 'rowNumber' in options:
|
||||
if 'rowNumber' in options and options['rowNumber'] is not None:
|
||||
options['rowNumber'] += 1
|
||||
else:
|
||||
options['rowNumber'] = 1
|
||||
|
Loading…
Reference in New Issue
Block a user