From 63b28bcf9dc4082994dedc411911e4cb0d5c0305 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 14 Jun 2011 10:47:23 +0530 Subject: [PATCH] Added delete function to delete temporary backup files --- cgi-bin/webnotes/utils/backups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/utils/backups.py b/cgi-bin/webnotes/utils/backups.py index 01ce9935f0..75f1b55fff 100644 --- a/cgi-bin/webnotes/utils/backups.py +++ b/cgi-bin/webnotes/utils/backups.py @@ -127,7 +127,7 @@ def delete_temp_backups(): file_list = os.listdir(backup_link_path) for this_file in file_list: this_file_path = backup_link_path + this_file - if is_file_old(this_file_path, 1): + if is_file_old(this_file_path): os.remove(this_file_path)