Пример #1
0
def runCmd(action):
    if action == 'notify':
        worker = MessageHandler()
        worker.notifySubs()
    elif action == 'update':
        PowerAlert().crawlPage()
    return 'OK'