fix table_def
authorVu Nhat Minh <vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 05:37:38 +0000 (14:37 +0900)
committerVu Nhat Minh <vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 05:37:38 +0000 (14:37 +0900)
rainbowstream/rainbow.py
rainbowstream/table_def.py

index 7195744..96d2f56 100644 (file)
@@ -789,7 +789,7 @@ def theme():
             # Load new config
             new_config = 'rainbowstream/colorset/' + g['stuff'] + '.json'
             new_config = load_config(new_config)
-            if new_config
+            if new_config:
                 for nc in new_config:
                     c[nc] = new_config[nc]
             # Update db
index 9948ad7..fda3948 100644 (file)
@@ -32,12 +32,10 @@ class Theme(Base):
     __tablename__ = "theme"
 
     theme_id = Column(Integer, primary_key=True)
-    theme_name = Column(String)
-    changed = Column(Boolean, default=False)
+    theme_name = Column(String(20))
 
     def __init__(self, theme_name):
         self.theme_name = theme_name
-        self.Boolean = False
 
 
 def init_db():