Rewrite comment to be more clear

This commit is contained in:
Santiago L 2022-03-22 11:37:46 +01:00
parent 3ac3802719
commit 358c569eea
1 changed files with 2 additions and 3 deletions

View File

@ -1025,10 +1025,9 @@ class PrintTagsForm(FlaskForm):
.distinct() .distinct()
.all() .all()
) )
# print only tags that are DHID
dhids = [x.devicehub_id for x in self._devices] dhids = [x.devicehub_id for x in self._devices]
# filter for found all tags of a list of devices
# self._tags = Tag.query.filter(Tag.owner_id == g.user.id).filter(Tag.device_id.in_(dhids)).all()
# filter for found all tags equal to devicehub_id
self._tags = ( self._tags = (
Tag.query.filter(Tag.owner_id == g.user.id).filter(Tag.id.in_(dhids)).all() Tag.query.filter(Tag.owner_id == g.user.id).filter(Tag.id.in_(dhids)).all()
) )