diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-25 12:18:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-25 17:56:43 +0200 |
commit | fc3501382c2aa3ef5b692f4f55c2616f9cade3f5 (patch) | |
tree | a047bb94f8f1854c621fa0fba5ed62c8e0d0be14 /tools/lift-bans.sh | |
parent | ed2361980b455d1825d811670f329cbcf5624927 (diff) | |
download | server-fc3501382c2aa3ef5b692f4f55c2616f9cade3f5.tar.gz |
Move toolbox scripts to a "bin" directory.
Add a super "rtt" command to run the scripts.
Diffstat (limited to 'tools/lift-bans.sh')
-rw-r--r-- | tools/lift-bans.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/lift-bans.sh b/tools/lift-bans.sh deleted file mode 100644 index e76f621..0000000 --- a/tools/lift-bans.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -sqlite3 db <<EOF - -begin immediate; - -.mode column - -create temporary view tm_lift_ban_view as - select - user_id, - name, - date(timeout_last), - timeout_total, - games_since_timeout, - (games_since_timeout > timeout_total) and (julianday() > julianday(timeout_last)+14) as lift_ban - from - user_profile_view - where - user_id in (select user_id from tm_banned) - order by lift_ban desc, timeout_last asc -; - -select * from tm_lift_ban_view; - -delete from tm_banned where user_id in (select user_id from tm_lift_ban_view where lift_ban) returning user_id; - -commit; - -EOF |