better variable name
This commit is contained in:
1 file changed
+3
-3
@@ -43,12 +43,12 @@ def getLineNumber(): return currentframe().f_back.f_lineno
|
|||||||
|
|
||||||
# Takes in information to create or add a new conflict
|
# Takes in information to create or add a new conflict
|
||||||
# Returns if the particular student has a previous error
|
# Returns if the particular student has a previous error
|
||||||
def newConflict(pupilNum: str, email: str, type: str, code: str, description: str, logs: dict) -> bool:
|
def newConflict(pupilNum: str, email: str, conflictType: str, code: str, description: str, logs: dict) -> bool:
|
||||||
exists = True if pupilNum in logs else False
|
exists = True if pupilNum in logs else False
|
||||||
if exists: logs[pupilNum].append({
|
if exists: logs[pupilNum].append({
|
||||||
"Pupil #": pupilNum,
|
"Pupil #": pupilNum,
|
||||||
"Email": email,
|
"Email": email,
|
||||||
"Type": type,
|
"Type": conflictType,
|
||||||
"Code": code,
|
"Code": code,
|
||||||
"Conflict": description
|
"Conflict": description
|
||||||
})
|
})
|
||||||
@@ -56,7 +56,7 @@ def newConflict(pupilNum: str, email: str, type: str, code: str, description: st
|
|||||||
logs[pupilNum] = [{
|
logs[pupilNum] = [{
|
||||||
"Pupil #": pupilNum,
|
"Pupil #": pupilNum,
|
||||||
"Email": email,
|
"Email": email,
|
||||||
"Type": type,
|
"Type": conflictType,
|
||||||
"Code": code,
|
"Code": code,
|
||||||
"Conflict": description
|
"Conflict": description
|
||||||
}]
|
}]
|
||||||
|
|||||||
Reference in new issue
Block a user