-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhb_output_settings.py
executable file
·53 lines (50 loc) · 3.51 KB
/
hb_output_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /usr/bin/env python
class Params:
"""
output parameters for running the invite script under different conditions.
"""
def __init__(self):
self.output_params = {
'th_invites' : {
'db_table' : 'th_up_invitees_current',
'select sample query' : 'select th sample',
'insert sample query' : 'insert th sample',
'talkpage select query' : 'find th talkpage',
'talkpage update query' : 'add th talkpage',
'select candidates query' : 'select th candidates',
'status update query' : 'update th invite status',
'type' : 'th invite templates',
'output namespace' : 'User_talk:',
'output section' : 'new',
'sample size' : 300,
'edit summary' : ', you are invited to the Teahouse!',
# 'output section title' : '== {{subst:PAGENAME}}, you are invited to the Teahouse ==',
'inviters' : ['Missvain', 'Naypta', 'AmaryllisGardener', 'Doctree', 'Bsoyka', 'Blaze The Wolf', 'I JethroBT', 'Keelan', 'Cordless Larry', 'Cullen328', 'Lectonar', '78.26', 'Worm That Turned', 'ChamithN', 'Nick Moyes', 'GreenMeansGo', 'MrClog', 'Jtmorgan', 'Bop34', 'GoingBatty', 'TheAafi'],
'inviter edit threshold' : 21,
'conditions' : ['th-invite', 'control'],
'skip templates' : ['uw-vandalism4', 'final warning', '{{sock|', 'uw-unsourced4', 'uw-socksuspect', 'Socksuspectnotice', 'only warning','without further warning', 'Uw-socksuspect', 'sockpuppetry', 'Teahouse', 'uw-cluebotwarning4', 'uw-vblock', 'uw-speedy4', '{{bots|deny=HostBot','{{Bots|deny=HostBot','{{nobots','{{Nobots'],
},
'test_invites' : { #when using the test db th_invite_test
'test_invites' : True, #a little hack for line 195 in profiles.py
'db_table' : 'th_invite_test',
'select sample query' : 'select sample test',
'insert sample query' : 'insert sample test',
'talkpage select query' : 'find talkpage test',
'talkpage update query' : 'add talkpage test',
'select candidates query' : 'select candidates test',
'status update query' : 'update invite status test',
'type' : 'test invite templates',
'output namespace' : 'User_talk:',
'output section' : 'new',
'sample size' : 300,
'edit summary' : ', you are invited to the Teahouse!',
# 'output section title' : '== {{subst:PAGENAME}}, you are invited to the Teahouse ==',
'inviters' : ['Jtmorgan','Missvain','Liz','Naypta','AmaryllisGardener','Doctree','I JethroBT', 'Keelan', 'Cordless Larry', 'Gestrid', 'Cullen328', 'Lectonar', 'Mz7', '78.26', 'Worm That Turned', 'ChamithN', 'Samwalton9',],
'inviter edit threshold' : 21,
'conditions' : ['th-invite', 'control'],
'skip templates' : ['uw-vandalism4', 'final warning', '{{sock|', 'uw-unsourced4', 'uw-socksuspect', 'Socksuspectnotice', 'only warning','without further warning', 'Uw-socksuspect', 'sockpuppetry', 'uw-cluebotwarning4', 'uw-vblock', 'uw-speedy4', '{{bots|deny=HostBot','{{Bots|deny=HostBot','{{nobots','{{Nobots'], #skip templates don't include 'teahouse' for testing purposes
},
}
def getParams(self, profile_type):
tp = self.output_params[profile_type]
return tp