Merge pull request #592 from anandpdoshi/hotfix

Fixed Download Backup
This commit is contained in:
Anand Doshi 2014-06-07 08:25:24 +05:30
commit 0a0bf09e0b
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ import frappe
from frappe.utils.momentjs import data as momentjs_data
def execute():
frappe.reload_doc("core", "doctype", "user")
ss = frappe.get_doc("System Settings", "System Settings")
if ss.time_zone in momentjs_data.get("links"):
ss.time_zone = momentjs_data["links"][ss.time_zone]

View file

@ -128,7 +128,7 @@ def get_backup():
"""
#if verbose: print frappe.db.cur_db_name + " " + conf.db_password
delete_temp_backups()
odb = BackupGenerator(frappe.db.cur_db_name, frappe.db.cur_db_name,\
odb = BackupGenerator(frappe.conf.db_name, frappe.conf.db_name,\
frappe.conf.db_password, db_host = frappe.db.host)
odb.get_backup()
recipient_list = odb.send_email()