Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Tapia committed Apr 2, 2022
1 parent ed2deeb commit a83c5bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torrents.nim
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ proc hotTorrents*(page: int): seq[Torrent] =
let torrents = db.getAllRows(sql"""
SELECT name, source, uploaded_at, canonical_url, magnet_url, size, seeders, leechers
FROM torrents
WHERE datetime(uploaded_at) BETWEEN datetime('now', '-6 days') AND datetime('now')
WHERE datetime(uploaded_at) BETWEEN datetime('now', '-6 days', 'utc') AND datetime('now', 'utc')
ORDER BY seeders DESC
LIMIT ?
OFFSET ?;
Expand Down
Binary file modified torrentinim-data.db
Binary file not shown.

0 comments on commit a83c5bd

Please sign in to comment.