Skip to content

Commit

Permalink
Also ignore the Sandbox archive
Browse files Browse the repository at this point in the history
-autopull
  • Loading branch information
makyen committed Mar 1, 2021
1 parent c62718a commit ff7b785
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bodyfetcher.py
Expand Up @@ -92,8 +92,16 @@ def add_to_queue(self, post, should_check_site=False):

site_base = d["siteBaseHostAddress"]
post_id = d["id"]
if (post_id == 3122 or post_id == 51812) and site_base == "meta.stackexchange.com":

# For the Sandbox questions on MSE, we choose to ignore the entire question and all answers.
ignored_mse_questions = [
3122, # Formatting Sandbox
51812, # The API sandbox
296077, # Sandbox archive
]
if post_id in ignored_mse_questions and site_base == "meta.stackexchange.com":
return # don't check meta sandbox, it's full of weird posts

with self.queue_modify_lock:
if site_base not in self.queue:
self.queue[site_base] = {}
Expand Down

0 comments on commit ff7b785

Please sign in to comment.