소스 검색

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

fix: backup utils
version-14
mergify[bot] 3 년 전
committed by GitHub
부모
커밋
cf0765916e
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      frappe/utils/backups.py

+ 3
- 3
frappe/utils/backups.py 파일 보기

@@ -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()

불러오는 중...
취소
저장