serJD commited on
Commit
cdf3a21
·
1 Parent(s): f64541d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -192,11 +192,11 @@ def sync_to_notion(token, database_id, branch_data):
192
  # Predefined dictionaries of streams to update
193
  streams = {
194
  "2B_100": {
195
- "stream": "https://speckle.xyz/streams/287b605243",
196
  "notionDB": '402d60c9c1ef4980a3d85c5a4f4a0c97'
197
  },
198
  "2B_U100": {
199
- "stream": "https://speckle.xyz/streams/ebcfc50abe",
200
  "notionDB": '00c3a26a119f487fa028c1ed404f22ba'
201
  }
202
  }
@@ -211,9 +211,8 @@ def update_streams(dummy):
211
  print("not", notion_token)
212
  print("spec", speckle_token)
213
  for key, value in streams.items():
214
- stream_url = value["stream"]
215
  notion_db = value["notionDB"]
216
- stream_id = stream_url.split('/')[-1]
217
 
218
  branch_data = extract_branch_info(stream_id, server_url="https://speckle.xyz/", token=speckle_token)
219
  sync_to_notion(notion_token, notion_db, branch_data)
 
192
  # Predefined dictionaries of streams to update
193
  streams = {
194
  "2B_100": {
195
+ "stream": "287b605243",
196
  "notionDB": '402d60c9c1ef4980a3d85c5a4f4a0c97'
197
  },
198
  "2B_U100": {
199
+ "stream": "ebcfc50abe",
200
  "notionDB": '00c3a26a119f487fa028c1ed404f22ba'
201
  }
202
  }
 
211
  print("not", notion_token)
212
  print("spec", speckle_token)
213
  for key, value in streams.items():
214
+ stream_id = value["stream"]
215
  notion_db = value["notionDB"]
 
216
 
217
  branch_data = extract_branch_info(stream_id, server_url="https://speckle.xyz/", token=speckle_token)
218
  sync_to_notion(notion_token, notion_db, branch_data)