From e4c1f9c5469887aa5c426c6913277ca6e6b6dba0 Mon Sep 17 00:00:00 2001 From: CharlesDDDD <10185101155@stu.ecnu.edu.cn> Date: Mon, 11 Jan 2021 22:11:18 +0800 Subject: [PATCH] =?UTF-8?q?block=E8=A1=A8=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E4=B8=80=E8=A1=8C=EF=BC=9Aorder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/view/model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/APP/view/model.py b/APP/view/model.py index 1024c6d..3b4860e 100644 --- a/APP/view/model.py +++ b/APP/view/model.py @@ -21,9 +21,9 @@ class Collection(Base): tag = Column(String(255)) phonenum = Column(String(255)) like = Column(Integer) - order =Column(Integer) + order = Column(Integer) - def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0,order=None): + def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0, order=None): self.id = id self.name = name self.tag = tag @@ -38,13 +38,15 @@ class Block(Base): content_text = Column(String(255)) content_pic = Column(BLOB) type = Column(Integer) + order = Column(Integer) # type = Column(String(255)) - def __init__(self, id=None, content_text=None,content_pic=None): + def __init__(self, id=None, content_text=None, content_pic=None, order=None, type=None): self.id = id self.content_text = content_text self.content_pic = content_pic self.type = type + self.order = order class CollectionBlock(Base):