def dict_factory(self, cursor, row):
d = {}<EOL>for idx, col in enumerate(cursor.description):<EOL><INDENT>val = row[idx]<EOL>name = col[<NUM_LIT:0>]<EOL>if name == Field.Time_Stamp:<EOL><INDENT>d[col[<NUM_LIT:0>]] = str(val)<EOL>continue<EOL><DEDENT>if name == "<STR_LIT>" or name == "<STR_LIT>":  <EOL><INDENT>continue<EOL><DEDENT>if name not in self.m_all_fields:<EOL><INDENT>continue<EOL><DEDENT>if (str(val) != "<STR_LIT:None>") and ((val > <NUM_LIT:0>) or (val < <NUM_LIT:0>)):<EOL><INDENT>d[name] = str(val)<EOL><DEDENT><DEDENT>return d<EOL>
Sqlite callback accepting the cursor and the original row as a tuple.

        Simple return of JSON safe types.

        Args:
            cursor (sqlite cursor):  Original cursory
            row (sqlite row tuple): Original row.

        Returns:
            dict: modified row.