optimize
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -1,9 +1,7 @@
|
||||
#! python
|
||||
import json
|
||||
|
||||
f = open('./output/students.json')
|
||||
students = json.load(f)
|
||||
f.close()
|
||||
with open('./output/students.json') as f: students = json.load(f)
|
||||
|
||||
couldnt_resolve = 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
|
||||
|
||||
def getLineNumber(): return currentframe().f_back.f_lineno
|
||||
exists = lambda n : True if n not in ('', None) else False
|
||||
getLineNumber = lambda : currentframe().f_back.f_lineno
|
||||
|
||||
# Takes in information to create or add a new conflict
|
||||
# Returns if the particular student has a previous error
|
||||
|
||||
Reference in new issue
Block a user