File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 7272# Add this near the top of your app.py, after initializing the app
7373app .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 }
12001200if __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 )
You can’t perform that action at this time.
0 commit comments