def get_active_users():
 return frappe.db.sql(u"select count(*) from `tabUser`\n DCTB  DCTB where enabled = 1 and user_type != 'Website User'\n DCTB  DCTB and name not in ({})\n DCTB  DCTB and hour(timediff(now(), last_active)) < 72".format(u', '.join(([u'%s'] * len(STANDARD_USERS)))), STANDARD_USERS)[0][0]

def get_active_users ( ) : return frappe . db . sql ( u"select count(*) from `tabUser`\n DCTB  DCTB where enabled = 1 and user_type != 'Website User'\n DCTB  DCTB and name not in ({})\n DCTB  DCTB and hour(timediff(now(), last_active)) < 72" . format ( u', ' . join ( ( [ u'%s' ] * len ( STANDARD_USERS ) ) ) ) , STANDARD_USERS ) [ 0 ] [ 0 ]
returns no .