Skip to content

Commit

Permalink
ZO-4683: Always publish valid tts-audio
Browse files Browse the repository at this point in the history
  • Loading branch information
louika committed Feb 19, 2024
1 parent 73c4dad commit c23b3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/zeit/speech/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def update(self, data: dict):
self._add_audio_reference(speech)

def _add_audio_reference(self, speech: IAudio):
article = self._assert_article_unchanged(speech)

IPublish(speech).publish(background=False)

article = self._assert_article_unchanged(speech)
if speech in IAudioReferences(article).items:
log.debug('%s already references %s', article, speech)
return
Expand Down

0 comments on commit c23b3d2

Please sign in to comment.