Browse Source

remove debugging print statement

tags/current_release
adam j hartz 5 months ago
parent
commit
fc0c4f423e
4 changed files with 5 additions and 8 deletions
  1. +2
    -2
      catsoop/__TEST_COURSE__/preload.py
  2. +0
    -1
      catsoop/cslog.py
  3. +1
    -3
      catsoop/lti.py
  4. +2
    -2
      catsoop/scripts/checker.py

+ 2
- 2
catsoop/__TEST_COURSE__/preload.py View File

@@ -52,8 +52,8 @@ cs_top_menu = [
# AUTHENTICATION

cs_auth_type = (
"login"
) # use the default (username/password based) authentication method
"login" # use the default (username/password based) authentication method
)
# for actually running a course at MIT, I like using OpenID Connect instead (https://oidc.mit.edu/).
# instructions on that later...



+ 0
- 1
catsoop/cslog.py View File

@@ -234,7 +234,6 @@ def overwrite_log(db_name, path, logname, new, lock=True):

def _read_log(db_name, path, logname, lock=True):
fname = get_log_filename(db_name, path, logname)
print(fname)
# get an exclusive lock on this file before reading it
cm = log_lock([db_name] + path + [logname]) if lock else passthrough()
with cm:


+ 1
- 3
catsoop/lti.py View File

@@ -109,9 +109,7 @@ class lti4cs_response(object):
Load LTI data from logs (cs database) if available
"""
if lti_data:
self.lti_data = (
lti_data
) # use provided LTI data (e.g. for asynchronous grading response)
self.lti_data = lti_data # use provided LTI data (e.g. for asynchronous grading response)
else:
logging = context["csm_cslog"]
uname = context["cs_user_info"]["username"]


+ 2
- 2
catsoop/scripts/checker.py View File

@@ -117,8 +117,8 @@ def do_check(row):
namemap[m["csq_name"]] = elt
csq_npoints = m.get("csq_npoints", 0)
total_possible_npoints += (
csq_npoints
) # used to compute total aggregate score pct
csq_npoints # used to compute total aggregate score pct
)
if DEBUG:
question = elt[0]["handle_submission"]
dn = m.get("csq_display_name")


Loading…
Cancel
Save