 
     parseSubmits: (submitsTable, childrenResults) ->
         submitsRows = submitsTable.split("<tr>")
-        result = false
+        result = true
         for row in submitsRows
             re = new RegExp '<td>[^<]*</td>\\s*<td><a href="/moodle/user/view.php\\?id=(\\d+)">([^<]*)</a></td>\\s*<td><a href="/moodle/mod/statements/view3.php\\?chapterid=(\\d+)&run_id=([0-9r]+)">([^<]*)</a></td>\\s*<td>([^<]*)</td>\\s*<td>[^<]*</td>\\s*<td>([^<]*)</td>', 'gm'
             data = re.exec row

                Results.addResult(user._id, problem._id, Submits.problemResult(user._id, problem))
    
    
#SyncedCron.add
#    name: 'loadTable',
#    schedule: (parser) ->
#        return parser.text('every 10 seconds');
##        return parser.text('every 5 minutes');
#    job: -> 
#        (new BasicSubmitDownloader()).run()

SyncedCron.start()
#Meteor.startup ->

        console.log uid, name, pid, runid, prob, date, "'"+outcome+"'"
        Submits.addSubmit(runid, date, uid, pid, outcome)
        Users.addUser(uid, name, "lic40")
        res
    
#    if date > endDate:  # we do not need this, but continue search
#        return True
