projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick fix sudo installer put file in /root/ bug
[rainbowstream.git]
/
rainbowstream
/
table_def.py
diff --git
a/rainbowstream/table_def.py
b/rainbowstream/table_def.py
index 28bbfc9000fa8658f7bd39285e30bd53e4760702..822fa1c7ff53d4d9da09eca6cee1ea0f56dfd820 100644
(file)
--- a/
rainbowstream/table_def.py
+++ b/
rainbowstream/table_def.py
@@
-38,17
+38,15
@@
class Theme(Base):
self.theme_name = theme_name
self.theme_name = theme_name
-class
List
(Base):
+class
Semaphore
(Base):
- __tablename__ = "
list
"
+ __tablename__ = "
semaphore
"
- list_rid = Column(Integer, primary_key=True)
- list_id = Column(Integer)
- list_name = Column(String(50))
+ semaphore_id = Column(Integer, primary_key=True)
+ flag = Column(Boolean)
- def __init__(self, list_id, list_name):
- self.list_id = list_id
- self.list_name = list_name
+ def __init__(self, flag):
+ self.flag = flag
def init_db():
def init_db():