Skip to content

Commit

Permalink
Merge pull request #6 from Nothing4You/issue-4
Browse files Browse the repository at this point in the history
Fix SQL query to subtract instead of add time interval
  • Loading branch information
wereii authored Jun 24, 2024
2 parents 39af700 + 489108d commit 4e2cf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ macro_rules! base_thumbnail_query_fmt {
() => {
"SELECT {select_target} FROM post \
WHERE thumbnail_url IS NOT NULL \
AND published < now() + interval '{interval} months' \
AND published < now() - interval '{interval} months' \
AND thumbnail_url LIKE '{base_host}%' \
{query_suffix};"
};
Expand Down

0 comments on commit 4e2cf3e

Please sign in to comment.