Roundup Tracker - Issues

Issue 963584

classification
Class.filter does not work with floats
Type: Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: richard : gtegos, richard
Priority: normal :

Created on 2004-05-31 13:33 by gtegos, last changed 2004-05-31 13:33 by gtegos.

Messages
msg1280 Author: [hidden] (gtegos) Date: 2004-05-31 13:33
If using non-integer values in Number fields, Class.filter 
function throws an exception. 

The following change corrects the problem:

            elif isinstance(propclass, Number):
                l.append((OTHER, k, int(v)))
change to:
            elif isinstance(propclass, Number):
                l.append((OTHER, k, float(v)))
History
Date User Action Args
2004-05-31 13:33:33gtegoscreate