Spaces:
Runtime error
Runtime error
Update app.py
Browse files191 unmodified lines1921931941951961971981992002012028 unmodified lines211212213214215216217218219191 unmodified lines# Predefined dictionaries of streams to updatestreams = {"2B_100": {"stream": "https://speckle.xyz/streams/287b605243","notionDB": '402d60c9c1ef4980a3d85c5a4f4a0c97'},"2B_U100": {"stream": "https://speckle.xyz/streams/ebcfc50abe","notionDB": '00c3a26a119f487fa028c1ed404f22ba'}}8 unmodified linesprint("not", notion_token)print("spec", speckle_token)for key, value in streams.items():stream_url = value["stream"]notion_db = value["notionDB"]stream_id = stream_url.split('/')[-1]branch_data = extract_branch_info(stream_id, server_url="https://speckle.xyz/", token=speckle_token)sync_to_notion(notion_token, notion_db, branch_data)191 unmodified lines1921931941951961971981992002012028 unmodified lines211212213214215216217218191 unmodified lines# Predefined dictionaries of streams to updatestreams = {"2B_100": {"stream": "287b605243","notionDB": '402d60c9c1ef4980a3d85c5a4f4a0c97'},"2B_U100": {"stream": "ebcfc50abe","notionDB": '00c3a26a119f487fa028c1ed404f22ba'}}8 unmodified linesprint("not", notion_token)print("spec", speckle_token)for key, value in streams.items():stream_id = value["stream"]notion_db = value["notionDB"]branch_data = extract_branch_info(stream_id, server_url="https://speckle.xyz/", token=speckle_token)sync_to_notion(notion_token, notion_db, branch_data)
app.py+3-4