mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
Merge pull request #1718 from nabinhait/v4-hotfix
Remove blank lines from uploaded file of attendance
This commit is contained in:
@@ -100,6 +100,7 @@ def upload():
|
|||||||
from frappe.modules import scrub
|
from frappe.modules import scrub
|
||||||
|
|
||||||
rows = read_csv_content_from_uploaded_file()
|
rows = read_csv_content_from_uploaded_file()
|
||||||
|
rows = filter(lambda x: x and any(x), rows)
|
||||||
if not rows:
|
if not rows:
|
||||||
msg = [_("Please select a csv file")]
|
msg = [_("Please select a csv file")]
|
||||||
return {"messages": msg, "error": msg}
|
return {"messages": msg, "error": msg}
|
||||||
|
|||||||
Reference in New Issue
Block a user