Content deleted Content added
Updating source) (bot |
Updating source) (bot |
||
Line 1:
Source as of
== Sandbot1.py ==
Line 59:
@property
def is_allowed(self):
return self.shutoff_page.content.lower() == "true" or True
tl = tuple(self.api.iterator(500, prop="templates", tlnamespace=10, titles=page))▼
return▼
def check_if_heading_is_gone(self, box):
return not ("Template:Sandbox heading" in [x.title for x in templates_in_box])▼
#print(res)
▲ return
def run(self):
Line 80 ⟶ 75:
if box.revision_user.name == "Lowercase sigmabot II":
continue
if self.check_if_heading_is_gone(box
box.prepend(self.REINSERT, summary="Reinserting sandbox header) (bot", bot=True)
print("\thad a header reinserted!")
|