update_outdated() — fastapi Function Reference
Architecture documentation for the update_outdated() function in translate.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 9ce4d449_89b1_9335_4e37_57480b7dc100["update_outdated()"] 6dda5e35_b655_8af3_cd89_8c1584a092c4["translate.py"] 9ce4d449_89b1_9335_4e37_57480b7dc100 -->|defined in| 6dda5e35_b655_8af3_cd89_8c1584a092c4 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6["update_and_add()"] 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 -->|calls| 9ce4d449_89b1_9335_4e37_57480b7dc100 eb35a9a2_2f96_3d51_2678_3143960195b2["list_outdated()"] 9ce4d449_89b1_9335_4e37_57480b7dc100 -->|calls| eb35a9a2_2f96_3d51_2678_3143960195b2 fde1dac0_2ec7_f895_3237_c5b8350a5417["translate_page()"] 9ce4d449_89b1_9335_4e37_57480b7dc100 -->|calls| fde1dac0_2ec7_f895_3237_c5b8350a5417 style 9ce4d449_89b1_9335_4e37_57480b7dc100 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/translate.py lines 350–359
def update_outdated(
language: Annotated[str, typer.Option(envvar="LANGUAGE")],
max: Annotated[int, typer.Option(envvar="MAX")] = 10,
) -> None:
outdated_paths = list_outdated(language)
for path in outdated_paths[:max]:
print(f"Updating lang: {language} path: {path}")
translate_page(language=language, en_path=path)
print(f"Done updating: {path}")
print("Done updating all outdated paths")
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does update_outdated() do?
update_outdated() is a function in the fastapi codebase, defined in scripts/translate.py.
Where is update_outdated() defined?
update_outdated() is defined in scripts/translate.py at line 350.
What does update_outdated() call?
update_outdated() calls 2 function(s): list_outdated, translate_page.
What calls update_outdated()?
update_outdated() is called by 1 function(s): update_and_add.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free