using thread now
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
pierre geeraert
2026-07-05 12:56:52 +01:00
parent decbfc1bb5
commit cece5eae71
2 changed files with 16 additions and 11 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ from celery.worker.state import active_requests
from requests.compat import str
from apps.betaserie.utils import betaserieUtils
from .models import simpsons_data_object
import time
betaserie = betaserieUtils()
@@ -22,7 +23,7 @@ def mark_episode_watched(season,episode,action,verbose=False):
episode_number = "S"+str(season)+"E"+str(episode)
episode_id = betaserie.identify_episode(simpsons_id,episode_number)
if action == "watched":
betaserie.mark_episodes_watched(episode_id)
elif action == "unwatched":