datajoint / datajoint-python

Relational data pipelines for the science lab
https://datajoint.com/docs
GNU Lesser General Public License v2.1
169 stars 84 forks source link

deletes fail when restricted by a list #164

Closed dimitri-yatsenko closed 9 years ago

dimitri-yatsenko commented 9 years ago
rel &= [dict(id=1), dict(id=2)]
rel.delete()

throws "datajoint.DataJointError: invalid restriction type"

This is because delete compiles a list of restrictions and we cannot restrict by a lists of lists.

dimitri-yatsenko commented 9 years ago

This is related to issue #158

dimitri-yatsenko commented 9 years ago

Fixed by pull request #158