Skip to content
Snippets Groups Projects
Commit c1009cbb authored by Nolan's avatar Nolan Committed by Yoann Schneider
Browse files

Prevent CreateTranscriptions in dev mode

parent 52b6d535
No related branches found
No related tags found
1 merge request!257Prevent CreateTranscriptions in dev mode
Pipeline #79829 passed
...@@ -167,6 +167,12 @@ class TranscriptionMixin(object): ...@@ -167,6 +167,12 @@ class TranscriptionMixin(object):
if orientation: if orientation:
transcription["orientation"] = orientation.value transcription["orientation"] = orientation.value
if self.is_read_only:
logger.warning(
"Cannot create transcription as this worker is in read-only mode"
)
return
created_trs = self.request( created_trs = self.request(
"CreateTranscriptions", "CreateTranscriptions",
body={ body={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment