def get_fullnames():
 ret = frappe.db.sql(u'select name, full_name as fullname,\n DCTB  DCTB  DCTB user_image as image, gender, email, username\n DCTB  DCTB from tabUser where enabled=1 and user_type!="Website User" ', as_dict=1)
 d = {}
 for r in ret:
  d[r.name] = r
 return d

def get_fullnames ( ) : ret = frappe . db . sql ( u'select name, full_name as fullname,\n DCTB  DCTB  DCTB user_image as image, gender, email, username\n DCTB  DCTB from tabUser where enabled=1 and user_type!="Website User" ' , as_dict = 1 ) d = { } for r in ret : d [ r . name ] = r return d
map of user fullnames .