From 19e560e73fd5855450ea3907462fe16222d9071a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 1 Sep 2015 09:57:25 +0530 Subject: [PATCH] [fix] dropbox backup check not working --- erpnext/setup/doctype/backup_manager/backup_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/backup_manager/backup_manager.py b/erpnext/setup/doctype/backup_manager/backup_manager.py index 8d9d48fbad..4b16330868 100644 --- a/erpnext/setup/doctype/backup_manager/backup_manager.py +++ b/erpnext/setup/doctype/backup_manager/backup_manager.py @@ -4,7 +4,7 @@ # For license information, please see license.txt from __future__ import unicode_literals -from frappe.utils import get_site_path +from frappe.utils import get_site_path, cint from frappe.utils.data import convert_utc_to_user_timezone import os import datetime @@ -42,7 +42,7 @@ def take_backups_weekly(): take_backups_if("Weekly") def take_backups_if(freq): - if frappe.db.get_value("Backup Manager", None, "send_backups_to_dropbox"): + if cint(frappe.db.get_value("Backup Manager", None, "send_backups_to_dropbox")): if frappe.db.get_value("Backup Manager", None, "upload_backups_to_dropbox")==freq: take_backups_dropbox()