From: Charles Connell Date: Sat, 14 Jun 2014 22:34:09 +0000 (-0400) Subject: Gotta get it running again X-Git-Tag: release-20150131~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cb0a98e15634a21b4965df59d7a956ae7f4bac9a;p=oweals%2Fkarmaworld.git Gotta get it running again --- diff --git a/karmaworld/apps/quizzes/admin.py b/karmaworld/apps/quizzes/admin.py index c7e669f..f2ee572 100644 --- a/karmaworld/apps/quizzes/admin.py +++ b/karmaworld/apps/quizzes/admin.py @@ -2,7 +2,8 @@ # -*- coding:utf8 -*- # Copyright (C) 2014 FinalsClub Foundation from django.contrib import admin -from karmaworld.apps.quizzes.models import Keyword, HIT +from karmaworld.apps.quizzes.models import Keyword, KeywordExtractionHIT, EmailParsingHIT admin.site.register(Keyword) -admin.site.register(HIT) +admin.site.register(KeywordExtractionHIT) +admin.site.register(EmailParsingHIT) diff --git a/karmaworld/apps/quizzes/tasks.py b/karmaworld/apps/quizzes/tasks.py index 5b2cc7c..53ae4da 100644 --- a/karmaworld/apps/quizzes/tasks.py +++ b/karmaworld/apps/quizzes/tasks.py @@ -382,9 +382,5 @@ def check_notes_mailbox(): keywords=EMAIL_HIT_KEYWORDS, duration=EMAIL_HIT_DURATION, reward=EMAIL_HIT_REWARD, qualifications=EMAIL_HIT_QUALIFICATION)[0] - hit_object = EmailParsingHIT(HITId=hit.HITId, processed=False) - for attachment in attachments: - #fields = ('name', 'tags', 'course', 'fp_file', 'mimetype', 'category') - document = Document.objects.create(name=) #mailbox.quit()