def dict_factory(self, cursor, row):
        """ 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.
        """
        d = {}
        for idx, col in enumerate(cursor.description):
            val = row[idx]
            name = col[0]
            if name == Field.Time_Stamp:
                d[col[0]] = str(val)
                continue
            if name == "Raw_A" or name == "Raw_B":  # or name == Field.Meter_Time:
                continue
            if name not in self.m_all_fields:
                continue
            if (str(val) != "None") and ((val > 0) or (val < 0)):
                d[name] = str(val)
        return d
def dict_factory(self, cursor, row):
        """ 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.
        """
        d = {}
        for idx, col in enumerate(cursor.description):
            val = row[idx]
            name = col[0]
            if name == Field.Time_Stamp:
                d[col[0]] = str(val)
                continue
            if name == "Raw_A" or name == "Raw_B":  # or name == Field.Meter_Time:
                continue
            if name not in self.m_all_fields:
                continue
            if (str(val) != "None") and ((val > 0) or (val < 0)):
                d[name] = str(val)
        return d
def dict_factory ( self , cursor , row ) : d = { } for idx , col in enumerate ( cursor . description ) : val = row [ idx ] name = col [ 0 ] if name == Field . Time_Stamp : d [ col [ 0 ] ] = str ( val ) continue if name == "Raw_A" or name == "Raw_B" : # or name == Field.Meter_Time: continue if name not in self . m_all_fields : continue if ( str ( val ) != "None" ) and ( ( val > 0 ) or ( val < 0 ) ) : d [ name ] = str ( val ) return d
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.
Sqlite callback accepting the cursor and the original row as a tuple .