瀏覽代碼

chore: typo mistake (#16275) (#16285)

(cherry picked from commit e997d82da3)

Co-authored-by: Bhavesh Maheshwari <34086262+bhavesh95863@users.noreply.github.com>
version-14
mergify[bot] 3 年之前
committed by GitHub
父節點
當前提交
c3e350f2c6
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/modules/import_file.py

+ 2
- 2
frappe/modules/import_file.py 查看文件

@@ -11,7 +11,7 @@ from frappe.query_builder import DocType
from frappe.utils import get_datetime, now from frappe.utils import get_datetime, now




def caclulate_hash(path: str) -> str:
def calculate_hash(path: str) -> str:
"""Calculate md5 hash of the file in binary mode """Calculate md5 hash of the file in binary mode


Args: Args:
@@ -99,7 +99,7 @@ def import_file_by_path(path: str,force: bool = False,data_import: bool = False,
print(f"{path} missing") print(f"{path} missing")
return return


calculated_hash = caclulate_hash(path)
calculated_hash = calculate_hash(path)


if docs: if docs:
if not isinstance(docs, list): if not isinstance(docs, list):


Loading…
取消
儲存