# Copyright (c) 2021, JINGROW and Contributors
# MIT License. See license.txt


import jingrow


def execute():
	indicator_map = {
		"blue": "Blue",
		"orange": "Orange",
		"red": "Red",
		"green": "Green",
		"darkgrey": "Gray",
		"gray": "Gray",
		"purple": "Purple",
		"yellow": "Yellow",
		"lightblue": "Light Blue",
	}
	for d in jingrow.get_all("Kanban Board Column", fields=["name", "indicator"]):
		color_name = indicator_map.get(d.indicator, "Gray")
		jingrow.db.set_value("Kanban Board Column", d.name, "indicator", color_name)
