Пример #1
0
def main():

    katalkParser.init()
    commandParser.init()

    for line in feedLine(katalkFileName):
        result = katalkParser.parseLine(line)
        if 'TALK_LINE' == result[0]:
            date, year, talkTime, id, talk = result[1:]
            fname = talk.split()[-1] # extract the last word from talk
            ext = os.path.splitext(fname)[-1]
            if len(ext) > 3: # this could file
                path = katalkFolder + fname
                if os.path.isfile(path):
                    dateKey = '%d월 %d일' % ((date // 100), (date % 100))
                    data = {'학번': '894180822', dateKey : fname}
                    shutil.copyfile(path, DBfolder + fname)
Пример #2
0
def main():
    katalkParser.init()
    commandParser.init()
    db = common.LectureDB()

    updateStudentInfo()