Skip to content

Commit 74b3b42

Browse files
pylint_fixed
1 parent b6d8a4d commit 74b3b42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/app_kernel.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
# Add this near the top of your app.py, after initializing the app
7373
app.add_middleware(
7474
CORSMiddleware,
75-
allow_origins=[frontend_url],
75+
allow_origins=["*"],
7676
allow_credentials=True,
7777
allow_methods=["*"],
7878
allow_headers=["*"],
@@ -683,11 +683,11 @@ async def get_plans(
683683
# Get system locale settings
684684
system_locale = locale.getdefaultlocale()
685685
language_code = system_locale[0] if system_locale else "unknown"
686-
686+
687687
# Add "local_system_language_selecetd" to each plan
688688
for plan in list_of_plans_with_steps:
689-
plan.user_locale = language_code.replace("_", "-")
690-
689+
plan.user_locale = language_code.replace("_", "-")
690+
691691
return list_of_plans_with_steps
692692

693693

@@ -1198,4 +1198,4 @@ async def get_task_examples():
11981198
"usage": "POST /api/tasks with any of the example payloads to see locale-specific date formatting"
11991199
}
12001200
if __name__ == "__main__":
1201-
uvicorn.run("app_kernel:app", host="127.0.0.1", port=8000, reload=True)
1201+
uvicorn.run("app_kernel:app", host="127.0.0.1", port=8000, reload=True)

0 commit comments

Comments
 (0)