File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,15 @@ def fetch(what):
7474 # print(res)
7575
7676 BEGIN_MARK = "<!--BEGIN_ASSIGNMENTS_BLOCK-->"
77- begin = res .find ("<!--BEGIN_ASSIGNMENTS_BLOCK-->" )
78- if begin == - 1 : raise (AssertionError ("assignment no BEGIN mark" ))
79- begin += len (BEGIN_MARK )
80- end = res .find ("<!--END_ASSIGNMENTS_BLOCK-->" , begin )
77+ # begin = res.find(BEGIN_MARK)
78+ begin = res .find (">PRP=" )
79+ if begin == - 1 : begin = res .find (">LL=" )
80+ if begin == - 1 :
81+ print (res )
82+ raise (AssertionError ("assignment no BEGIN mark" ))
83+ begin += 1
84+ # begin += len(BEGIN_MARK)
85+ end = res .find ("</" , begin )
8186 if end == - 1 : raise (AssertionError ("assignemnt no END mark" ))
8287 line = res [begin :end ].strip ().strip ('\n ' )
8388 print (datetime .now (), " New assignment: " , line )
You can’t perform that action at this time.
0 commit comments