From aed14a829fc98b9b473b4103affbb74460550d2c Mon Sep 17 00:00:00 2001
From: Albin Heimerson <albin.heimerson@control.lth.se>
Date: Mon, 27 Apr 2020 10:00:41 +0200
Subject: [PATCH] change message
---
canvas_sync.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/canvas_sync.py b/canvas_sync.py
index bd75184..af3e092 100644
--- a/canvas_sync.py
+++ b/canvas_sync.py
@@ -31,18 +31,18 @@ folders = [(pdf_folder, ())]
while len(folders) > 0:
folder, path = folders.pop()
ospath = os.path.join(GITLAB_FOLDER_NAME, *path)
- print("Looking in folder {}".format(ospath))
+ print("Searching {}".format(ospath))
for f in os.listdir(ospath):
gitlabpath = os.path.join(ospath, f)
canvaspath = "/".join([CANVAS_BASE_PATH, CANVAS_FOLDER_NAME, *path, f])
if os.path.isdir(gitlabpath):
nfolder = next((folder for folder in course.get_folders()
if folder.full_name == canvaspath), None)
- print("{} is folder, found {} on canvas".format(gitlabpath, nfolder))
+ print("{} is a folder, found {} on canvas".format(gitlabpath, nfolder))
if nfolder is None:
print("Creating new canvas folder.")
nfolder = folder.create_folder(f)
folders.append((nfolder, tuple([*path, f])))
else:
- print("{} is file, uploading!".format(gitlabpath))
+ print("{} is a file, uploading!".format(gitlabpath))
folder.upload(gitlabpath)
--
GitLab