Content deleted Content added
Updating source) (bot |
Updating source) (bot |
||
Line 1:
Source as of 07:
== Sandbot1.py ==
Line 59:
@property
def is_allowed(self):
return self.shutoff_page.content.lower() == "true" #or True
def check_if_heading_is_gone(self, box):
Line 161:
now = datetime.datetime.utcnow()
three_min = datetime.timedelta(seconds=6)#0 * 3)
# there's probably a way to use MediaWiki.iterator(), but too lazy
res = self.api.call(action="query", prop="revisions", titles=box.title, rvprop="timestamp", limit="2")
str_stamp = res["query"]["pages"][tuple(res["query"]["pages"].keys())[0]]["revisions"][0]["timestamp"]
|