Browse Source

集锦表增加了like属性

master
邓淳远 4 years ago
parent
commit
0e97d31d1e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      APP/view/model.py

+ 3
- 1
APP/view/model.py View File

@ -20,12 +20,14 @@ class Collection(Base):
name = Column(String(255))
tag = Column(String(255))
phonenum = Column(String(255))
like = Column(Integer)
def __init__(self, id=None, name=None, tag=None, phonenum=None):
def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0):
self.id = id
self.name = name
self.tag = tag
self.phonenum = phonenum
self.like = like
class Block(Base):

Loading…
Cancel
Save