(sender, **kwargs)
Updates the episode state with the saved EpisodeHistoryEntry
Updates the episode state with the saved EpisodeHistoryEntry
Updates the episode state with the saved EpisodeHistoryEntry
def set_episode_state(sender, **kwargs):
    """Updates the episode state with the saved EpisodeHistoryEntry"""

    from mygpo.episodestates.tasks import update_episode_state

    historyentry = kwargs.get("instance", None)

    if not historyentry:
        return

    update_episode_state.delay(historyentry.pk)
def set_episode_state ( sender , * * kwargs ) : from mygpo . episodestates . tasks import update_episode_state historyentry = kwargs . get ( "instance" , None ) if not historyentry : return update_episode_state . delay ( historyentry . pk )