Beispiel #1
0
def setup():
    from feed import CategoryFeed
    from scheduler import Jas1Scheduler, SM2Scheduler
    from triage import CategoryReverseTriage
    from pack import CategoryPack
    from persist import Persist, replay
    ordered, qs = get_questions()
    feed = CategoryFeed(ordered)
    pack = CategoryPack(feed, CategoryReverseTriage(),
                        SM2Scheduler(base_interval=60*5),
                        qs, Persist("records/records.txt"))
    replay("records/records.txt", pack, qs)
    save(pack)
Beispiel #2
0
def setup():
    from feed import CategoryFeed
    from scheduler import Jas1Scheduler, SM2Scheduler
    from triage import CategoryReverseTriage
    from pack import CategoryPack
    from persist import Persist, replay
    ordered, qs = get_questions()
    feed = CategoryFeed(ordered)
    pack = CategoryPack(feed, CategoryReverseTriage(),
                        SM2Scheduler(base_interval=60 * 5), qs,
                        Persist("records/records.txt"))
    replay("records/records.txt", pack, qs)
    save(pack)
Beispiel #3
0
def get_questions():
    from questions.novel_frequency import get_questions
    questions = get_questions()
    qs = {question.q:question for question in questions}
    ordered = [(question.q, question.group) for question in questions]
    return ordered, qs
Beispiel #4
0
def get_questions():
    from questions.novel_frequency import get_questions
    questions = get_questions()
    qs = {question.q: question for question in questions}
    ordered = [(question.q, question.group) for question in questions]
    return ordered, qs