Example #1
0
def fix_spell_level_text(curs, section_id):
	fetch_spell_lists(curs, section_id)
	sl = []
	objs = curs.fetchall()
	for obj in objs:
		sl.append(obj['class'] + ": " + str(obj['level']))
	level_text = "; ".join(sl)
	update_spell_detail(curs, section_id, level_text=level_text)
Example #2
0
def fix_spell_level_text(curs, section_id):
	fetch_spell_lists(curs, section_id)
	sl = []
	objs = curs.fetchall()
	for obj in objs:
		sl.append(obj['class'] + ": " + str(obj['level']))
	level_text = "; ".join(sl)
	update_spell_detail(curs, section_id, level_text=level_text)
Example #3
0
def fix_spell_list_text(curs, section_id, type):
	fetch_spell_lists(curs, section_id, type=type)
	sl = []
	objs = curs.fetchall()
	for obj in objs:
		sl.append(obj['name'] + ": " + str(obj['level']))
	list_text = "; ".join(sl)
	if type == "class":
		update_spell_detail(curs, section_id, level_text=list_text)
	elif type == "domain":
		update_spell_detail(curs, section_id, domain_text=list_text)
Example #4
0
def fix_spell_list_text(curs, section_id, type):
    fetch_spell_lists(curs, section_id, type=type)
    sl = []
    objs = curs.fetchall()
    for obj in objs:
        sl.append(obj['name'] + ": " + str(obj['level']))
    list_text = "; ".join(sl)
    if type == "class":
        update_spell_detail(curs, section_id, level_text=list_text)
    elif type == "domain":
        update_spell_detail(curs, section_id, domain_text=list_text)