From: Steinar H. Gunderson Date: Thu, 17 Feb 2005 19:25:13 +0000 (+0000) Subject: Add backend for resetting the song chooser. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=fc972e108b71d452f7134af16cdbce6a0be3b73f;ds=sidebyside Add backend for resetting the song chooser. --- diff --git a/html/do-reset-randomsongs.pl b/html/do-reset-randomsongs.pl new file mode 100755 index 0000000..e470b73 --- /dev/null +++ b/html/do-reset-randomsongs.pl @@ -0,0 +1,14 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); +my $cgi = new CGI; + +$dbh->do('DELETE FROM randomsongsused'); + +ccbs::print_see_other('randomsongs.pl'); + +$dbh->disconnect;