Please look at the attachment. for DB screenshot

in db.py  contents of define_table
    Field('tags','list:reference tags'),
    Field('refval','string', compute=lambda r:r['tags']),
    Field('min_tag_id','integer', compute=lambda r:min(r['tags'])),
    Field('max_tag_id','integer', compute=lambda r:max(r['tags'])),

the min and max computation dose not work as expected ... the third row in 
db in because of a small change for debug

line 2 of above code is changed as 
    Field('refval','string', compute=lambda r:type(r['tags']) ),

so even though the type of r['tags'] is list the min and max is not working 
properly ... *any idea y?*

<<attachment: Capture.JPG>>

Reply via email to