Closed pythononwheels closed 6 years ago
what: Behaviour for lists vs single results in the methods above class: models.tinydb.TinyBaseModel
currently: return element only for one result return list for more than one result.
problem: results in many if len ==1 ... in the methods
Should change to: Always return list.
Returns one elem OR a generator
what: Behaviour for lists vs single results in the methods above class: models.tinydb.TinyBaseModel
currently: return element only for one result return list for more than one result.
problem: results in many if len ==1 ... in the methods
Should change to: Always return list.