[product cache] add not replace
All checks were successful
Python lint and test / linttest (push) Successful in 4m37s
All checks were successful
Python lint and test / linttest (push) Successful in 4m37s
This commit is contained in:
parent
e2af49046c
commit
29445273ca
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@ class Product(Base, CommonMixin):
|
|||
)
|
||||
)
|
||||
.values(
|
||||
usage_count_cached=select(func.count(Entry.id)).where(
|
||||
usage_count_cached=cls.usage_count_cached
|
||||
+ select(func.count(Entry.id)).where(
|
||||
Entry.product_id == cls.id,
|
||||
Entry.processed == False,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue