LogicGoInfotechSpaces commited on
Commit
cb65d6f
·
1 Parent(s): e0805f7

Fix remaining indentation syntax errors

Browse files
Files changed (1) hide show
  1. app/smart_recommendation.py +3 -3
app/smart_recommendation.py CHANGED
@@ -1263,7 +1263,7 @@ class SmartBudgetRecommender:
1263
  if not data.get("monthly_values") or len(data["monthly_values"]) == 0:
1264
  history = f"{avg_expense:.0f}"
1265
  else:
1266
- history = ", ".join(f"{value:.0f}" for value in data["monthly_values"])
1267
 
1268
  # Build comprehensive data summary for OpenAI to analyze
1269
  monthly_values = data.get("monthly_values", [])
@@ -1302,8 +1302,8 @@ class SmartBudgetRecommender:
1302
 
1303
  if is_new_budget:
1304
  # This is a new budget - no historical data
1305
- summary = (
1306
- f"Category: {category}\n"
1307
  f"⚠️ IMPORTANT: This is a NEW BUDGET with NO historical spending data.\n"
1308
  f"The user has provided a budget amount of {avg_expense:,.2f} for this category.\n"
1309
  f"This is the ONLY data point available - there is NO spending history to analyze.\n\n"
 
1263
  if not data.get("monthly_values") or len(data["monthly_values"]) == 0:
1264
  history = f"{avg_expense:.0f}"
1265
  else:
1266
+ history = ", ".join(f"{value:.0f}" for value in data["monthly_values"])
1267
 
1268
  # Build comprehensive data summary for OpenAI to analyze
1269
  monthly_values = data.get("monthly_values", [])
 
1302
 
1303
  if is_new_budget:
1304
  # This is a new budget - no historical data
1305
+ summary = (
1306
+ f"Category: {category}\n"
1307
  f"⚠️ IMPORTANT: This is a NEW BUDGET with NO historical spending data.\n"
1308
  f"The user has provided a budget amount of {avg_expense:,.2f} for this category.\n"
1309
  f"This is the ONLY data point available - there is NO spending history to analyze.\n\n"