Skip to content
Browse files

Update interval to 2 years.

  • Loading branch information...
1 parent 276a30d commit 0a3c7347e906baa0c165b7770a86e21614bf79cf @dracos dracos committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/remove-old-data
View
4 bin/remove-old-data
@@ -30,8 +30,8 @@ if (!GetOptions( 'verbose=i' => \$verbose)) {
exit(1);
}
-my $date = dbh()->selectrow_array("select ms_current_date() - interval '1 year'");
-my $dateS = dbh()->selectrow_array("select ms_current_date() - interval '1 year' - interval '1 month'");
+my $date = dbh()->selectrow_array("select ms_current_date() - interval '2 years'");
+my $dateS = dbh()->selectrow_array("select ms_current_date() - interval '2 years' - interval '1 month'");
# Get all petitions that closed over a year ago
my $ids = dbh()->selectcol_arrayref("select id from petition where deadline < '$date' and deadline>='$dateS' and status='finished'");

0 comments on commit 0a3c734

Please sign in to comment.
Something went wrong with that request. Please try again.