Abhishek commited on
Commit
efba77b
·
1 Parent(s): 28fcd72

Updated db

Browse files
core/mcp_tools/populate_erp_db.py CHANGED
@@ -106,14 +106,7 @@ def populate_erp_db(db_path='./data/erp_db.sqlite'):
106
  datetime.timedelta(days=random.randint(3, 10) + delivery_offset)).strftime('%Y-%m-%d')
107
 
108
  # Determine order status
109
- if days_ago <= 1:
110
- status = 'Processing'
111
- elif days_ago <= 3:
112
- status = 'Shipped'
113
- elif delivered:
114
- status = 'Delivered'
115
- else:
116
- status = random.choice(['Processing', 'Shipped', 'In Transit'])
117
 
118
  # Determine payment status
119
  payment_status = random.choice(['Paid', 'Pending', 'Paid', 'Paid']) # 75% chance of being paid
 
106
  datetime.timedelta(days=random.randint(3, 10) + delivery_offset)).strftime('%Y-%m-%d')
107
 
108
  # Determine order status
109
+ status = random.choice(['Processing', 'Shipped', 'In Transit'])
 
 
 
 
 
 
 
110
 
111
  # Determine payment status
112
  payment_status = random.choice(['Paid', 'Pending', 'Paid', 'Paid']) # 75% chance of being paid
data/erp_db.sqlite CHANGED
Binary files a/data/erp_db.sqlite and b/data/erp_db.sqlite differ