Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,14 @@ def mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, K
|
|
100 |
tot_sqm += float(v)
|
101 |
if tot_sqm <= 0:
|
102 |
pass_flag = False
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
if pass_flag == False :
|
106 |
log["removedDatapoints"] +=1
|
@@ -140,7 +147,7 @@ def mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, K
|
|
140 |
|
141 |
# Send the data object to the speckle stream
|
142 |
object_id = operations.send(stream_new, [transport])
|
143 |
-
time.sleep(
|
144 |
# Create a new commit with the new object
|
145 |
commit_id = CLIENT.commit.create(
|
146 |
STREAM_ID,
|
|
|
100 |
tot_sqm += float(v)
|
101 |
if tot_sqm <= 0:
|
102 |
pass_flag = False
|
103 |
+
|
104 |
+
# COND B: remove non connected
|
105 |
+
if "isConnected" in objDict.keys():
|
106 |
+
if objDict["isConnected"] == False:
|
107 |
+
pass_flag == False
|
108 |
+
else:
|
109 |
+
pass_flag == False
|
110 |
+
|
111 |
|
112 |
if pass_flag == False :
|
113 |
log["removedDatapoints"] +=1
|
|
|
147 |
|
148 |
# Send the data object to the speckle stream
|
149 |
object_id = operations.send(stream_new, [transport])
|
150 |
+
time.sleep(1)
|
151 |
# Create a new commit with the new object
|
152 |
commit_id = CLIENT.commit.create(
|
153 |
STREAM_ID,
|