@danhachuel/thunderbolt 0.7.23 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/main.py +1 -2
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -5225,8 +5225,6 @@ def _automation_created_at(task: dict[str, Any]) -> tuple[datetime, str]:
|
|
|
5225
5225
|
def load_automation_tasks_for_platform(platform_name: str) -> list[dict[str, Any]]:
|
|
5226
5226
|
"""Return only automation/catalog tasks belonging to one publishing platform."""
|
|
5227
5227
|
target = str(platform_name or "").strip().casefold()
|
|
5228
|
-
if target == "youtube":
|
|
5229
|
-
_sync_saved_scripts_to_youtube_automation()
|
|
5230
5228
|
return sorted(
|
|
5231
5229
|
[task for task in load_video_tasks_for_catalog() if task_platform(task) == target],
|
|
5232
5230
|
key=_automation_created_at,
|
|
@@ -6149,6 +6147,7 @@ def _render_youtube_automation_cards():
|
|
|
6149
6147
|
def render_automation():
|
|
6150
6148
|
st.title("Automação Youtube")
|
|
6151
6149
|
st.caption("Agendamento diário da geração por canal. O worker verifica o relógio local do computador e coloca os lotes agendados na fila.")
|
|
6150
|
+
_sync_saved_scripts_to_youtube_automation()
|
|
6152
6151
|
worker_status = load_worker_status()
|
|
6153
6152
|
local_now = datetime.now().astimezone()
|
|
6154
6153
|
if worker_status.get("alive"):
|
package/package.json
CHANGED