diff --git a/queries/records/get_and_update.sql b/queries/records/get_and_update.sql index e8803fc..0626938 100644 --- a/queries/records/get_and_update.sql +++ b/queries/records/get_and_update.sql @@ -3,4 +3,4 @@ SET downloads = downloads + 1 WHERE cache_name = ? AND downloads < max_downloads - AND julianday('now') - julianday(uploaded) > 5; + AND julianday('now') - julianday(uploaded) < 5;