X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FStorage%2FAlchemyObject.py;fp=PLC%2FStorage%2FAlchemyObject.py;h=2f49023120f41b91b61c7801ae68cc6bdd0cba26;hb=952c83c9dc4cef2e7c746281247883ac9d4685f3;hp=c0c3974a98013cdff94a6484e0fd0a47b08c06c7;hpb=99b2c2b5e068b21b1208733a77fdf908257c51e5;p=plcapi.git diff --git a/PLC/Storage/AlchemyObject.py b/PLC/Storage/AlchemyObject.py index c0c3974..2f49023 100644 --- a/PLC/Storage/AlchemyObject.py +++ b/PLC/Storage/AlchemyObject.py @@ -90,10 +90,10 @@ class AlchemyObj(Record): constraints = [] for (field, value) in filter.items(): if isinstance(value, list): - if value: - column = table.columns.get(field) - if isinstance(column, Column): - constraints.append(column.in_(value)) + #if value: + column = table.columns.get(field) + if isinstance(column, Column): + constraints.append(column.in_(value)) else: constraints.append(table.columns.get(field) == value) if not constraints: