root/bin/killbrokenmanagers.py

Revision 47, 350 bytes (checked in by Jonathan Jacobs <korpse@…>, 2 years ago)

Initial web interface implementation.
This includes a number of substantial changes to the rest of the codebase.

Line 
1import sys
2
3from axiom.store import Store
4from axiom.dependency import uninstallFrom
5
6from eridanus.bot import IRCBotService
7
8
9db = Store(sys.argv[1])
10for svc in db.query(IRCBotService):
11    for manager in svc.config.allEntryManagers():
12        if not manager.channel.startswith(u'#'):
13            print manager
14            manager.deleteFromStore()
Note: See TracBrowser for help on using the browser.