From 82688d67ce1cbe95a739cfc258b89fc5e03c9e06 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Mon, 31 Oct 2022 15:29:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/rules.db | Bin 110592 -> 126976 bytes js/version.txt | 2 +- models/__init__.py | 1 + models/vipParse.py | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 models/vipParse.py diff --git a/base/rules.db b/base/rules.db index 5c32fd71649d07b2f3c3501b573973112d003e19..2b6acf905044c67c5eec4e9a66772122d4904551 100644 GIT binary patch delta 733 zcmZp8z}E19eS)-L2m=FyJP^Zx_(UCJ^$-R?97dtLX*9@R@UbUvWwfwGdA*O=B1=oWLCtNWfsI2Bo-B? z#wQo0CYGeervM4KpuBUCt7C|(f~TL0YlH$W}zAwXPSp0T;GBrz!m;SIRs1ZAKWgg83+xPlx#c@CeP zQIi@UJ4j!PG!A{(v?)#w;T4G~Ey_^{a}09!a17EgGBwrIQQ+b%E&+xiFw8<+-Cct~ z0wt9ND14>-qLkDkC1fS36(tzvOy18cCd?=9*x!J{S6&V|OCoA#`PZr<~W#QpuNS(Z%J(0" % ( + self.id, self.name, self.url) + + @classmethod + def hasItem(self, url): + exists = db.session.query(self).filter(self.url == url).scalar() is not None + if exists: + return True + else: + return False \ No newline at end of file -- GitLab