refactor: remove db.commit() from business services, callers use UnitOfWork (Tier 3)
This commit is contained in:
@@ -82,9 +82,7 @@ def update_scoring_weights(
|
||||
row.weight_freshness = new.freshness
|
||||
row.weight_platform_diversity = new.platform_diversity
|
||||
|
||||
db.commit()
|
||||
db.refresh(row)
|
||||
|
||||
# Does not commit; caller (router) uses UnitOfWork.
|
||||
return _weights_dict(new)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user