79398265

Date: 2025-01-29 21:44:46
Score: 0.5
Natty:
Report link

WriteOnlyCollection requires an additional query to access its items.

self.db_session.scalars(part.health_indicators.select()).all()

part.health_indicators.add_all(self.db_session.scalars(fill_query).all())

This is a correct way to add a list of items to an empty WriteOnlyCollection.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: defalt