Remove blank lines from uploaded file of attendance #1714

This commit is contained in:
Nabin Hait 2014-05-30 14:30:36 +05:30
parent 852e7cdb41
commit 1897e75894

View File

@ -100,6 +100,7 @@ def upload():
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}