regenerate something when the sentences changed
This commit is contained in:
@@ -700,6 +700,7 @@ def create_app(
|
||||
)
|
||||
if sentence is None:
|
||||
raise HTTPException(status_code=404, detail="Sentence was not found.")
|
||||
application.state.subtitle_translations.refresh(video_hash)
|
||||
return sentence
|
||||
|
||||
@application.put(
|
||||
@@ -735,6 +736,7 @@ def create_app(
|
||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||
if result is None:
|
||||
raise HTTPException(status_code=404, detail="Sentence was not found.")
|
||||
application.state.subtitle_translations.refresh(video_hash)
|
||||
return result
|
||||
|
||||
|
||||
@@ -756,6 +758,7 @@ def create_app(
|
||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||
if sentence is None:
|
||||
raise HTTPException(status_code=404, detail="Sentence was not found.")
|
||||
application.state.subtitle_translations.refresh(video_hash)
|
||||
return sentence
|
||||
|
||||
@application.put(
|
||||
|
||||
Reference in New Issue
Block a user