[migration] Fixing issue with fb13d49b72f9 downgrade (#7145)

* [migration] Fixing issue with fb13d49b72f9 downgrade

This PR fixes an issue with the downgrade step of migration fb13d49b72f9 which wrongfully labeled the field `metrics` rather than `metric`.

to: @graceguo-supercat @michellethomas @mistercrunch

* Update fb13d49b72f9_better_filters.py
This commit is contained in:
John Bodley 2019-03-28 10:07:55 -07:00 committed by GitHub
parent 6e79e84b02
commit 36a6fade90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def downgrade():
flts = params.get('filter_configs')
if not flts:
continue
params['metrics'] = [flts[0].get('metric')]
params['metric'] = flts[0].get('metric')
params['groupby'] = [o.get('column') for o in flts]
slc.params = json.dumps(params, sort_keys=True)
except Exception as e: