pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

Rework TinyBaseModel _return_find() -> dict_result_to_object() #27

Closed pythononwheels closed 6 years ago

pythononwheels commented 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.

pythononwheels commented 6 years ago

Returns one elem OR a generator