コード例 #1
0
def select_character_power_list():
    return [
        CharacterPower(each[1:len(each)],
                       select_character_by_specific_column('ID', each[0]))
        for each in DBAccessor.execute(
            'select {0} from CharacterPower where {1}'.format(
                ','.join(CharacterPower.SELECTED_COLUMNS), _get_condition()))
    ]
コード例 #2
0
def select_character_power_list():
    return [CharacterPower(each[1:len(each)], select_character_by_specific_column('ID', each[0])) for each in
            DBAccessor.execute('select {0} from CharacterPower where {1}'.format(
                ','.join(CharacterPower.SELECTED_COLUMNS), _get_condition()))]
コード例 #3
0
def _convert_selected_columns_to_record(columns):
    return RecordOfDrawLots([columns[0], columns[3], columns[4]], select_specific_event(columns[1]),
                            select_character_by_specific_column('ID', columns[2]))