Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,10 +41,7 @@ def extract_branch_info(stream_id, server_url=None, token=None):
|
|
| 41 |
if server_url and token:
|
| 42 |
client = SpeckleClient(host=server_url)
|
| 43 |
client.authenticate_with_token(token=token)
|
| 44 |
-
|
| 45 |
-
account = get_default_account()
|
| 46 |
-
client = SpeckleClient(host=account.serverUrl)
|
| 47 |
-
client.authenticate(token=account.token)
|
| 48 |
|
| 49 |
branches = client.branch.list(stream_id, 100)
|
| 50 |
|
|
@@ -219,8 +216,8 @@ def update_streams(dummy):
|
|
| 219 |
speckle_token = os.environ.get("SPECKLE_TOKEN")
|
| 220 |
notion_token = os.environ.get("NOTION_TOKEN")
|
| 221 |
|
| 222 |
-
client = SpeckleClient(host="https://speckle.xyz
|
| 223 |
-
client.authenticate_with_token(token=speckle_token)
|
| 224 |
print("not", notion_token)
|
| 225 |
print("spec", speckle_token)
|
| 226 |
for key, value in streams.items():
|
|
|
|
| 41 |
if server_url and token:
|
| 42 |
client = SpeckleClient(host=server_url)
|
| 43 |
client.authenticate_with_token(token=token)
|
| 44 |
+
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
branches = client.branch.list(stream_id, 100)
|
| 47 |
|
|
|
|
| 216 |
speckle_token = os.environ.get("SPECKLE_TOKEN")
|
| 217 |
notion_token = os.environ.get("NOTION_TOKEN")
|
| 218 |
|
| 219 |
+
#client = SpeckleClient(host="https://speckle.xyz")
|
| 220 |
+
#client.authenticate_with_token(token=speckle_token)
|
| 221 |
print("not", notion_token)
|
| 222 |
print("spec", speckle_token)
|
| 223 |
for key, value in streams.items():
|