optimize
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -1,9 +1,7 @@
|
|||||||
#! python
|
#! python
|
||||||
import json
|
import json
|
||||||
|
|
||||||
f = open('./output/students.json')
|
with open('./output/students.json') as f: students = json.load(f)
|
||||||
students = json.load(f)
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
couldnt_resolve = 0
|
couldnt_resolve = 0
|
||||||
missing_classes = 0
|
missing_classes = 0
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ from util.generateCourses import getSampleCourses
|
|||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def exists(n): return True if n not in ('', None) else False
|
exists = lambda n : True if n not in ('', None) else False
|
||||||
|
getLineNumber = lambda : currentframe().f_back.f_lineno
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user