mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
od_util can be used when od-database is a submodule part 2
This commit is contained in:
@@ -2,6 +2,7 @@ from tasks import Task, TaskResult
|
||||
from reddit_bot import RedditBot
|
||||
import praw
|
||||
from search.search import SearchEngine
|
||||
import json
|
||||
|
||||
|
||||
class PostCrawlCallback:
|
||||
@@ -9,6 +10,9 @@ class PostCrawlCallback:
|
||||
def __init__(self, task: Task):
|
||||
self.task = task
|
||||
|
||||
if self.task.callback_args:
|
||||
self.task.callback_args = json.loads(self.task.callback_args)
|
||||
|
||||
def run(self, task_result: TaskResult, search: SearchEngine):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user