Skip to content

Commit

Permalink
add created_at info
Browse files Browse the repository at this point in the history
  • Loading branch information
computermacgyver committed Feb 12, 2025
1 parent 107d154 commit a8bce39
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/tasks/data/text_similarity_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ namespace :check do
body: article.send(body_method_mapping[type]),
url: article.url,
type: type,
claim: claim
claim: claim,
created_at: article.created_at
}]
}
end
Expand Down Expand Up @@ -86,7 +87,8 @@ namespace :check do
title: item.title,
description: item.description,
channel: channel_name(item),
origin: origin_name(item)
origin: origin_name(item),
created_at: item.created_at
}

# Explainers, if any
Expand All @@ -98,7 +100,8 @@ namespace :check do
body: explainer.description,
url: explainer.url,
claim: nil,
type: 'explainer'
type: 'explainer',
created_at: explainer.created_at
}
end

Expand All @@ -111,7 +114,8 @@ namespace :check do
body: fact_check.summary,
url: fact_check.url,
claim: fact_check.claim_description.description,
type: 'fact-check'
type: 'fact-check',
created_at: fact_check.created_at
}
end

Expand Down

0 comments on commit a8bce39

Please sign in to comment.