summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-21 11:12:03 +0000
committerTor Andersson <tor@ccxvii.net>2021-06-24 14:44:14 +0200
commit9ec70cf3b141d3a05c845043c75e3fd3579a3da5 (patch)
treef9c274cdc6ce0a7cd16e7c5e147891fdcf446c10 /tools
parentfb2f62ad6910f6514677b589bfc063c5fcf22558 (diff)
downloadserver-9ec70cf3b141d3a05c845043c75e3fd3579a3da5.tar.gz
Purge stale games after two weeks.
Diffstat (limited to 'tools')
-rw-r--r--tools/purge.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/purge.sh b/tools/purge.sh
index 8c1ea7e..58e1431 100644
--- a/tools/purge.sh
+++ b/tools/purge.sh
@@ -3,4 +3,4 @@
# Clean out stale games from the database.
sqlite3 db "DELETE FROM games WHERE status = 0 AND mtime < datetime('now', '-7 days')"
-sqlite3 db "UPDATE games SET status = 3 WHERE status = 1 AND mtime < datetime('now', '-28 days')"
+sqlite3 db "UPDATE games SET status = 3 WHERE status = 1 AND mtime < datetime('now', '-14 days')"