def _api_restart_repair(name, output, kwargs):
 sabnzbd.request_repair()
 sabnzbd.trigger_restart()
 return report(output)

def _api_restart_repair ( name , output , kwargs ) : sabnzbd . request_repair ( ) sabnzbd . trigger_restart ( ) return report ( output )
api: accepts output .