Fixing vendor dashboard area
This commit is contained in:
@@ -74,8 +74,11 @@ class StatsService:
|
||||
).count()
|
||||
|
||||
# Staging statistics
|
||||
# TODO: This is fragile - MarketplaceProduct uses vendor_name (string) not vendor_id
|
||||
# Should add vendor_id foreign key to MarketplaceProduct for robust querying
|
||||
# For now, matching by vendor name which could fail if names don't match exactly
|
||||
staging_products = db.query(MarketplaceProduct).filter(
|
||||
MarketplaceProduct.vendor_id == vendor_id
|
||||
MarketplaceProduct.vendor_name == vendor.name
|
||||
).count()
|
||||
|
||||
# Inventory statistics
|
||||
|
||||
Reference in New Issue
Block a user