def get_total_users():
 return frappe.db.sql(u'select sum(simultaneous_sessions) from `tabUser`\n DCTB  DCTB where enabled=1 and user_type="System User"\n DCTB  DCTB and name not in ({})'.format(u', '.join(([u'%s'] * len(STANDARD_USERS)))), STANDARD_USERS)[0][0]

def get_total_users ( ) : return frappe . db . sql ( u'select sum(simultaneous_sessions) from `tabUser`\n DCTB  DCTB where enabled=1 and user_type="System User"\n DCTB  DCTB and name not in ({})' . format ( u', ' . join ( ( [ u'%s' ] * len ( STANDARD_USERS ) ) ) ) , STANDARD_USERS ) [ 0 ] [ 0 ]
returns total no .