Revert "implement post keepers"

This commit is contained in:
Albert Yi
2018-02-07 12:28:56 -08:00
committed by GitHub
parent 2e62916832
commit b9fcfe0442
6 changed files with 3 additions and 290 deletions

View File

@@ -20,13 +20,6 @@ module GoogleBigQuery
"regexp_match(removed_tags, \"(?:^| )#{es}(?:$| )\")"
end
def find_for_post(post_id, created_at)
post_id = post_id.to_i
btime = created_at.strftime("%Y-%m-%d 00:00:00", created_at)
etime = 1.day.from(created_at).strftime("%Y-%m-%d 00:00:00")
"select updater_id, added_tag from [danbooru_#{Rails.env}].post_versions_flat_part where _partitiontime >= #{btime} and _partitiontime <= #{etime} and post_id = #{post_id}"
end
def find(user_id, added_tags, removed_tags, min_version_id, max_version_id, limit = 1_000)
constraints = []