def account_post_init(remote, token=None):
    """Perform post initialization."""
    gh = GitHubAPI(user_id=token.remote_account.user_id)
    repos = [r.id for r in gh.api.repositories() if r.permissions['admin']]
    sync_hooks.delay(token.remote_account.user_id, repos)
def account_post_init ( remote , token = None ) : gh = GitHubAPI ( user_id = token . remote_account . user_id ) repos = [ r . id for r in gh . api . repositories ( ) if r . permissions [ 'admin' ] ] sync_hooks . delay ( token . remote_account . user_id , repos )
Perform post initialization.