def increment_trigger_ref_count(rule_api):
 trigger_dict = _get_trigger_dict_given_rule(rule_api)
 if trigger_dict.get('parameters', None):
  trigger_db = _get_trigger_db(trigger_dict)
  Trigger.update(trigger_db, inc__ref_count=1)

def increment_trigger_ref_count ( rule_api ) : trigger_dict = _get_trigger_dict_given_rule ( rule_api ) if trigger_dict . get ( 'parameters' , None ) : trigger_db = _get_trigger_db ( trigger_dict ) Trigger . update ( trigger_db , inc__ref_count = 1 )
given the rule figures out the triggertype with parameter and increments reference count on the appropriate trigger .