Closed Robin5605 closed 1 year ago
Closes #80
Apparently ScalarResult objects are exhaustible iterators, and the {rule.name for rule in rules} line was exhausting it before it could be added into the database. Using .all() converts the ScalarResult[T] into Sequence[T]
ScalarResult
{rule.name for rule in rules}
.all()
ScalarResult[T]
Sequence[T]
Closes #80
Apparently
ScalarResult
objects are exhaustible iterators, and the{rule.name for rule in rules}
line was exhausting it before it could be added into the database. Using.all()
converts theScalarResult[T]
intoSequence[T]