Spaces:
Sleeping
Sleeping
Upload app/api/seed.py
Browse files- 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": "
|
| 247 |
"categories_count": db.query(Category).count(),
|
| 248 |
-
"
|
| 249 |
-
"
|
|
|
|
| 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,
|