识别尚未自动解决的帖子

我认为运行一个数据探索器查询来精确识别符合条件的帖子,然后使用自动化将结果以定期私信的形式发送,应该就能满足你的需求。 :+1:

类似这样:

-- [params]
-- int_list :category_id = 4, 5, 6


WITH solved_topics AS (
    SELECT p.topic_id
    FROM posts p
    INNER JOIN topic_custom_fields tcf ON tcf.value::int = p.id
    WHERE tcf.name = 'accepted_answer_post_id'
      AND p.deleted_at ISNULL
      AND post_number = 1
)

SELECT t.id AS topic_id,
       t.created_at::date "创建日期"
FROM topics t
WHERE t.id NOT IN (SELECT topic_id FROM solved_topics)
  AND t.user_id > 0
  AND t.deleted_at ISNULL
  AND t.closed = false
  AND t.category_id IN (:category_id)
  AND t.created_at > CURRENT_DATE - INTERVAL '14 DAYS'
ORDER BY 2
3 个赞