From 932057cca0249346880f5c9994c761c0966dc9af Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 31 May 2023 22:20:33 +0200 Subject: [PATCH] update execution time --- Tranga/TrangaTasks/DownloadNewChaptersTask.cs | 1 + Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Tranga/TrangaTasks/DownloadNewChaptersTask.cs b/Tranga/TrangaTasks/DownloadNewChaptersTask.cs index 8dff7d3..57a7738 100644 --- a/Tranga/TrangaTasks/DownloadNewChaptersTask.cs +++ b/Tranga/TrangaTasks/DownloadNewChaptersTask.cs @@ -25,6 +25,7 @@ public class DownloadNewChaptersTask : TrangaTask foreach(Chapter newChapter in newChapters) connector.DownloadChapter(pub, newChapter); + this.lastExecuted = DateTime.Now; this.state = ExecutionState.Waiting; } diff --git a/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs b/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs index c778553..d27c38e 100644 --- a/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs +++ b/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs @@ -16,6 +16,8 @@ public class UpdateKomgaLibraryTask : TrangaTask Komga.KomgaLibrary[] allLibraries = komga.GetLibraries(); foreach (Komga.KomgaLibrary lib in allLibraries) komga.UpdateLibrary(lib.id); + + this.lastExecuted = DateTime.Now; this.state = ExecutionState.Waiting; } } \ No newline at end of file