Switch to side-by-side view
--- a/scripts/fix-tracker-fields.py +++ b/scripts/fix-tracker-fields.py @@ -21,7 +21,9 @@ q = TM.Globals.query.find() if not q.count(): continue for g in q: - old_names = g.status_names.split() or ['open', 'closed'] + if g.open_status_names: continue + if g.status_names is None: old_names = ['open', 'closed'] + else: old_names = g.status_names.split() or ['open', 'closed'] if g.open_status_names is None: g.open_status_names = ' '.join( name for name in old_names if name != 'closed')