diff options
-rw-r--r-- | fietsboek/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fietsboek/util.py b/fietsboek/util.py index d3a4064..f62a0d5 100644 --- a/fietsboek/util.py +++ b/fietsboek/util.py @@ -231,6 +231,8 @@ def retrieve_multiple(dbsession, model, params, name): """ objects = [] for obj_id in params.getall(name): + if not obj_id: + continue query = select(model).filter_by(id=obj_id) obj = dbsession.execute(query).scalar_one_or_none() if obj is None: |