Skip to content

Commit

Permalink
Added corrections storage path to config
Browse files Browse the repository at this point in the history
  • Loading branch information
majbyr committed Feb 27, 2023
1 parent a21e035 commit 61d356b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class APIConfig(BaseModel):
workspaces: Dict[str, Workspace]
domains: Dict[str, Domain]
language_codes: Dict[str, str]
corrections_data_storage_path: str = "storage/corrections.txt"
corrections_data_storage_path: str


class APISettings(BaseSettings):
Expand Down
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ domains: # Domains of translation engines
language_codes: # A mapping of all language code formats to the default 3-letter format
{ "et": "est", "est": "est", "en": "eng", "eng": "eng", "de": "ger", "deu": "ger", "ger": "ger", "lt": "lit",
"lit": "lit", "fi": "fin", "fin": "fin", "lv": "lav", "lav": "lav", "ru": "rus", "rus": "rus" }
corrections_data_storage_path: "storage/corrections.txt" # A path to the file with user-corrected translations data

0 comments on commit 61d356b

Please sign in to comment.