Revision b83df225 snf-pithos-backend/pithos/backends/lib/sqlalchemy/xfeatures.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/xfeatures.py | ||
---|---|---|
106 | 106 |
|
107 | 107 |
def xfeature_get_bulk(self, paths): |
108 | 108 |
"""Return features for paths.""" |
109 |
paths = list(set(paths)) |
|
109 | 110 |
s = select([self.xfeatures.c.feature_id, self.xfeatures.c.path]) |
110 | 111 |
s = s.where(self.xfeatures.c.path.in_(paths)) |
111 | 112 |
s = s.order_by(self.xfeatures.c.path) |
Also available in: Unified diff