Skip to content

Commit

Permalink
update tetst data
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariiiii committed Dec 8, 2024
1 parent c476259 commit 8020db5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/app/utils/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def create_sample_data():
credits = [
Credit(_id=ObjectId("64bfe2e30123456789abcdef"), loan_name="Молодежный кредит", amount=5000, interest_rate=5.5, monthly_payment=150, expiration_time = 6).save(),
Credit(_id=ObjectId("64bfe2e40123456789abcdef"), loan_name="Автокредит", amount=15000, interest_rate=4.2, monthly_payment=300, expiration_time = 5).save(),
Credit(_id=ObjectId("64bfe2e50123456789abcdef"), loan_name="Ипотека", amount=200000, interest_rate=3.8, monthly_payment=1200, expiration_time = 4).save()
Credit(_id=ObjectId("64bfe2e50123456789abcdef"), loan_name="Ипотека", amount=200000, interest_rate=3.8, monthly_payment=1200, expiration_time = 4).save(),
Credit(_id=ObjectId("64bfe2e40123466789abcdef"), loan_name="Автокредит", amount=15000, interest_rate=4.2, monthly_payment=300, expiration_time = 5).save(),
Credit(_id=ObjectId("64bfe2e50123476789abcdef"), loan_name="Ипотека", amount=200000, interest_rate=3.8, monthly_payment=1200, expiration_time = 4).save()
]

credit_history = [
Expand All @@ -27,7 +29,9 @@ def create_sample_data():
credit_requests = [
CreditRequest(_id=ObjectId("64bfe2e60123456789abcdef"), client_id=clients[0]._id, loan_id=credits[0]._id, status="processing").save(),
CreditRequest(_id=ObjectId("64bfe2e70123456789abcdef"), client_id=clients[1]._id, loan_id=credits[1]._id, status="approved").save(),
CreditRequest(_id=ObjectId("64bfe2e80123456789abcdef"), client_id=clients[2]._id, loan_id=credits[2]._id, status="rejected").save()
CreditRequest(_id=ObjectId("64bfe2e60123956789abcdef"), client_id=clients[0]._id, loan_id=credits[2]._id, status="processing").save(),
CreditRequest(_id=ObjectId("64bfe2e90123456789abcdef"), client_id=clients[0]._id, loan_id=credits[3]._id, status="approved").save(),
CreditRequest(_id=ObjectId("64bfe2e11123456789abcdef"), client_id=clients[2]._id, loan_id=credits[4]._id, status="rejected").save()
]

interaction_history = [
Expand Down

0 comments on commit 8020db5

Please sign in to comment.