(self, gtid)
| 60 | ver = '' |
| 61 | baseurl = '' |
| 62 | def getVersion(self, gtid): |
| 63 | param = { |
| 64 | "path": '/' |
| 65 | } |
| 66 | if gtid.count('/') == 2: |
| 67 | gtid = gtid + '/' |
| 68 | baseurl = re.findall(r"http.*://.*?/", gtid)[0] |
| 69 | ver = self.fetch(baseurl + 'api/public/settings', param) |
| 70 | vjo = json.loads(ver.text)['data'] |
| 71 | if type(vjo) is dict: |
| 72 | ver = 3 |
| 73 | else: |
| 74 | ver = 2 |
| 75 | self.ver = ver |
| 76 | self.baseurl = baseurl |
| 77 | |
| 78 | def categoryContent(self, tid, pg, filter, extend): |
| 79 | result = {} |
no test coverage detected