aboutsummaryrefslogtreecommitdiffstats
path: root/local/handler/StatusHandler.py
blob: 4c564933a1cce7536d71d352bb1763c14d7d881e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from ..utility import *

def handle(data, theme):
    if data['state'] == 'pending' and not configValue("showPendingStatuses"):
        return

    theme.status(
        status = data['state'],
        description = data['description'],
        url = getShortURL(data['target_url'])
    )

© 2014-2024 Faster IT GmbH | imprint | privacy policy