Content deleted Content added
Updating source) (bot |
Updating source) (bot |
||
Line 1:
Source as of
== Sandbot1.py ==
Line 141:
def should_be_reset(box):
curtime = datetime.utcnow()
query = api.call({"action":"query", "prop":"revisions", "titles":box, "rvprop":"timestamp"})["query"]["pages"]
pageid = query.keys()[0]
box_stamp = api.parse_date(query[pageid]["revisions"][0]["timestamp"])
if box_stamp < curtime -
return True
return False
|