Procházet zdrojové kódy

Merge pull request #16340 from alyf-de/refactor-backup-utils

fix: backup utils
version-14
mergify[bot] před 3 roky
committed by GitHub
rodič
revize
cf0765916e
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      frappe/utils/backups.py

+ 3
- 3
frappe/utils/backups.py Zobrazit soubor

@@ -15,7 +15,7 @@ import click

# imports - module imports
import frappe
from frappe import _, conf
from frappe import conf
from frappe.utils import get_file_size, get_url, now, now_datetime, cint
from frappe.utils.password import get_encryption_key

@@ -505,7 +505,7 @@ download only after 24 hours.""" % {
datetime_str.strftime("%d/%m/%Y %H:%M:%S") + """ - Backup ready to be downloaded"""
)

frappe.sendmail(recipients=recipient_list, msg=msg, subject=subject)
frappe.sendmail(recipients=recipient_list, message=msg, subject=subject)
return recipient_list


@@ -779,7 +779,7 @@ if __name__ == "__main__":
db_type=db_type,
db_port=db_port,
)
odb.send_email("abc.sql.gz")
odb.send_email()

if cmd == "delete_temp_backups":
delete_temp_backups()

Načítá se…
Zrušit
Uložit