Explorar el Código

a space could have multiple records now

chenhaiyang hace 4 años
padre
commit
22347a952a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/models/space/weight.py

+ 1 - 1
app/models/space/weight.py

@@ -11,7 +11,7 @@ class VAVRoomWeight(Base):
     id = Column(Integer, primary_key=True, index=True)
     default_weight = Column(Float)
     project_id = Column(String, index=True, nullable=False)
-    space_id = Column(String, index=True, unique=True, nullable=False)
+    space_id = Column(String, index=True, nullable=False)
     vav_box_id = Column(String, index=True, nullable=False)
     temporary_weight = Column(Float, default=0.0)
     temporary_weight_update_time = Column(String, default='20201111110400')