Fixed main_writer.py and errors in bobs transcripts

parent de09c196
......@@ -40,7 +40,7 @@ with open('main.lp','w') as main:
#those that are not required.
if not ('_req(%s,required).' % c) in req:
taken += "%s," % c
hasTaken += '_hasTaken(%s,%s).\n' % (student, c)
hasTaken += '_hasTaken(%s,%s).\n' % (student, c)
main.write('\n')
taken = taken[:-1]
taken += ']).\n'
......
bob
bs,cs,2015,none
hist1301,hist1302,cs3162,cs3305,cs3340,cs3341,cs3345,cs3354,cs3376,cs3361,cs3390,cs4141,cs4337,cs4341,cs4347,cs4348,cs4349,cs4384,cs4485,math2413,math2418,cs1200,cs1337,cs2305,cs2336,chem1311,phys2125,phys2126,phys2325,phys2326,cs4314,cs4315,cs4334,huma1301,ahst2331
hist1301,hist1302,cs3162,cs3305,cs3340,cs3341,cs3345,cs3354,cs3376,ecs3361,ecs3390,cs4141,cs4337,cs4341,cs4347,cs4348,cs4349,cs4384,cs4485,math2413,math2418,cs1200,cs1337,cs2305,cs2336,chem1311,phys2125,phys2126,phys2325,phys2326,cs4314,cs4315,cs4334,huma1301,ahst2331
bob
bs,me,2015,none
hist1301,hist1302,cs3162,cs3305,cs3340,cs3341,cs3345,cs3354,cs3376,cs3361,cs3390,cs4141,cs4337,cs4341,cs4347,cs4348,cs4349,cs4384,cs4485,math2413,math2418,cs1200,cs1337,cs2305,cs2336,chem1311,phys2125,phys2126,phys2325,phys2326,cs4314,cs4315,cs4334,huma1301,ahst2331
hist1301,hist1302,cs3162,cs3305,cs3340,cs3341,cs3345,cs3354,cs3376,ecs3361,ecs3390,cs4141,cs4337,cs4341,cs4347,cs4348,cs4349,cs4384,cs4485,math2413,math2418,cs1200,cs1337,cs2305,cs2336,chem1311,phys2125,phys2126,phys2325,phys2326,cs4314,cs4315,cs4334,huma1301,ahst2331
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment