From ea5bf7c071c912090e912f927c2f279e3dd53044 Mon Sep 17 00:00:00 2001 From: Raffu Khondaker <2022rkhondak@tjhsst.edu> Date: Tue, 16 Jun 2020 14:18:39 -0400 Subject: [PATCH] skoolos.py in cli --- CLI/skoolos.py => skoolos.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename CLI/skoolos.py => skoolos.py (98%) diff --git a/CLI/skoolos.py b/skoolos.py similarity index 98% rename from CLI/skoolos.py rename to skoolos.py index 881cce4..2003e6b 100644 --- a/CLI/skoolos.py +++ b/skoolos.py @@ -230,7 +230,9 @@ def teacherCLI(user, password): ] ass = prompt(questions)['assignment'] apath = teacher.username + "/" + course + "/" + ass - + due = input("Enter due date (Example: 2020-08-11 16:58): ") + due = due + ":00.000000" + due = due.strip() teacher.addAssignment(apath, course, due) @@ -315,9 +317,9 @@ def authenticate(): #Macos: chromdriver-mac #Windows: chromdriver.exe if('CLI' in os.getcwd()): - path = os.path.join(os.getcwd(), '../','chromedriver/chromedriver-mac') + path = os.path.join(os.getcwd(), '../','chromedriver-mac') else: - path = os.path.join(os.getcwd(), 'chromedriver/chromedriver-mac') + path = os.path.join(os.getcwd(), 'chromedriver-mac') browser = webdriver.Chrome(path)