MCPcopy
hub / github.com/LawRefBook/Laws / run

Method run

scripts/request.py:622–637  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

620 yield from arr
621
622 def run(self):
623 for i in range(1, 2):
624 ret = self.request.getLawList(i)
625 arr = ret["result"]["data"]
626 if len(arr) == 0:
627 break
628 for item in arr:
629 if "publish" in item and item["publish"]:
630 item["publish"] = item["publish"].split(" ")[0]
631 # if self.is_bypassed_law(item):
632 # continue
633 # if item["status"] == "9":
634 # continue
635 self.parse_law(item)
636 if self.spec_title is not None:
637 exit(1)
638
639
640def main():

Callers 1

mainFunction · 0.95

Calls 2

parse_lawMethod · 0.95
getLawListMethod · 0.80

Tested by

no test coverage detected