def update_limits(limits_dict):
 limits = get_limits()
 limits.update(limits_dict)
 update_site_config(u'limits', limits, validate=False)
 disable_users(limits)
 frappe.local.conf.limits = limits

def update_limits ( limits_dict ) : limits = get_limits ( ) limits . update ( limits_dict ) update_site_config ( u'limits' , limits , validate = False ) disable_users ( limits ) frappe . local . conf . limits = limits
add/update limit in site_config .