hisham-cmd commited on
Commit
8ac1f1a
·
verified ·
1 Parent(s): 7523a9b

Upload app/api/seed.py

Browse files
Files changed (1) hide show
  1. app/api/seed.py +4 -3
app/api/seed.py CHANGED
@@ -243,10 +243,11 @@ async def seed_database(clear: bool = False, db: Session = Depends(get_db)):
243
  return AuthResponse(
244
  isSuccess=True,
245
  value={
246
- "message": "Database seeded with real products successfully",
247
  "categories_count": db.query(Category).count(),
248
- "dummy_products": inserted_count,
249
- "real_products": real_count,
 
250
  "coupons_count": len(DEMO_COUPONS),
251
  },
252
  statusCode=201,
 
243
  return AuthResponse(
244
  isSuccess=True,
245
  value={
246
+ "message": "تم تهيئة قاعدة البيانات بالمنتجات الحقيقية بنجاح",
247
  "categories_count": db.query(Category).count(),
248
+ "total_products": inserted_count + real_count,
249
+ "generated_products": inserted_count,
250
+ "live_api_products": real_count,
251
  "coupons_count": len(DEMO_COUPONS),
252
  },
253
  statusCode=201,