commit | 1897e75894f642a1e703eb373856e8daea33fecc | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Fri May 30 14:30:36 2014 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri May 30 14:31:10 2014 +0530 |
tree | a609ec87046a4a590e49e3dfe1f9455112a6a1b6 | |
parent | 852e7cdb413299a2b518dd72c3fffc1c7dc31752 [diff] |
Remove blank lines from uploaded file of attendance #1714
diff --git a/erpnext/hr/doctype/upload_attendance/upload_attendance.py b/erpnext/hr/doctype/upload_attendance/upload_attendance.py index af86eb9..b6e56d0 100644 --- a/erpnext/hr/doctype/upload_attendance/upload_attendance.py +++ b/erpnext/hr/doctype/upload_attendance/upload_attendance.py
@@ -100,6 +100,7 @@ from frappe.modules import scrub rows = read_csv_content_from_uploaded_file() + rows = filter(lambda x: x and any(x), rows) if not rows: msg = [_("Please select a csv file")] return {"messages": msg, "error": msg}