fix: unknown attribute "string_type" (#26947)

This commit is contained in:
Ankush Menat
2021-08-14 10:45:43 +05:30
committed by GitHub
parent 434692ad34
commit 6aed9e26ac

View File

@@ -135,7 +135,7 @@ def mark_attendance(employee, attendance_date, status, shift=None, leave_type=No
def mark_bulk_attendance(data):
import json
from pprint import pprint
if isinstance(data, frappe.string_types):
if isinstance(data, str):
data = json.loads(data)
data = frappe._dict(data)
company = frappe.get_value('Employee', data.employee, 'company')