1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

fixed typo on storage locator. (The bug is in a code that is not used, but maybe in a future...)

This commit is contained in:
Adolfo Gómez García 2020-11-13 08:29:19 +01:00
parent d5f84a4209
commit ed15178549

View File

@ -244,7 +244,7 @@ class Storage:
if isinstance(attr1, str):
query = DBStorage.objects.filter(owner=self._owner, attr1=attr1) # @UndefinedVariable
else:
query = DBStorage.objects.filter(owner=self._owner, attr1_in=attr1) # @UndefinedVariable
query = DBStorage.objects.filter(owner=self._owner, attr1__in=attr1) # @UndefinedVariable
for v in query:
yield typing.cast(bytes, encoders.decode(v.data, 'base64'))