From 7c84bf1a032d7315d5f42ecec61cceeec36632c5 Mon Sep 17 00:00:00 2001 From: minie4 Date: Wed, 20 Dec 2023 22:58:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Increase=20progress=20after=20do?= =?UTF-8?q?wnload=20finished?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 37871d2..4e512e8 100644 --- a/main.go +++ b/main.go @@ -84,8 +84,8 @@ func main() { current_tasks++ go func(resource itslearning.Resource) { defer wg.Done() - bar.Incr() itslearning.DownloadElement(itsl, resource.ElementID, "./out/"+course.Title+"/"+resource.Title) + bar.Incr() current_tasks-- }(resource)