Commit
·
40e963c
1
Parent(s):
847392c
solving error
Browse files- app/main.py +2 -2
- app/smart_recommendation.py +1 -1
app/main.py
CHANGED
|
@@ -5,8 +5,8 @@ from pymongo.errors import ConnectionFailure
|
|
| 5 |
import os
|
| 6 |
from typing import List, Optional
|
| 7 |
from datetime import datetime, timedelta
|
| 8 |
-
from models import BudgetRecommendation, Expense, Budget, CategoryExpense
|
| 9 |
-
from smart_recommendation import SmartBudgetRecommender
|
| 10 |
|
| 11 |
app = FastAPI(title="Smart Budget Recommendation API", version="1.0.0")
|
| 12 |
|
|
|
|
| 5 |
import os
|
| 6 |
from typing import List, Optional
|
| 7 |
from datetime import datetime, timedelta
|
| 8 |
+
from app.models import BudgetRecommendation, Expense, Budget, CategoryExpense
|
| 9 |
+
from app.smart_recommendation import SmartBudgetRecommender
|
| 10 |
|
| 11 |
app = FastAPI(title="Smart Budget Recommendation API", version="1.0.0")
|
| 12 |
|
app/smart_recommendation.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from datetime import datetime, timedelta
|
| 2 |
from typing import List, Dict
|
| 3 |
from collections import defaultdict
|
| 4 |
-
from models import BudgetRecommendation, CategoryExpense
|
| 5 |
import math
|
| 6 |
|
| 7 |
class SmartBudgetRecommender:
|
|
|
|
| 1 |
from datetime import datetime, timedelta
|
| 2 |
from typing import List, Dict
|
| 3 |
from collections import defaultdict
|
| 4 |
+
from app.models import BudgetRecommendation, CategoryExpense
|
| 5 |
import math
|
| 6 |
|
| 7 |
class SmartBudgetRecommender:
|