Exemple #1
0
def get_targets():
    """Get `AddonGitHubNodeSettings` records with authorization and a non-null
    webhook.

    """
    return AddonGitHubNodeSettings.find(
        Q('user_settings', 'ne', None) & Q('hook_id', 'ne', None))
Exemple #2
0
def get_targets():
    """Get `AddonGitHubNodeSettings` records with authorization and a non-null
    webhook.

    """
    return AddonGitHubNodeSettings.find(
        Q('user_settings', 'ne', None) &
        Q('hook_id', 'ne', None)
    )