mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Refresh index before reddit comment callback
This commit is contained in:
@@ -58,6 +58,7 @@ class RedditCommentCallback(RedditCallback):
|
||||
comment_id = self.task.callback_args["comment_id"]
|
||||
print("Editing comment comment " + comment_id)
|
||||
|
||||
search.refresh() # Make sure the newly indexed documents are available before commenting
|
||||
stats = search.get_stats(self.task.website_id)
|
||||
message = self.reddit_bot.get_comment(stats, self.task.website_id,
|
||||
message="There you go! This website was crawled in `" +
|
||||
|
||||
Reference in New Issue
Block a user