Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -246,7 +246,7 @@ def reset_database(notion, database_id):
|
|
246 |
print(f"Reset of database {database_id} completed.")
|
247 |
|
248 |
|
249 |
-
|
250 |
guiding_db_an = "1dafd962f861406d928bbdf109b9bfe4"
|
251 |
land_use_abbr = "3b0e681e922a41409b6a13c11105c56a"
|
252 |
target_db = "ec2a636f079d4d7686f94901b6238242"
|
@@ -263,6 +263,8 @@ async def update_table(request: Request):
|
|
263 |
# Accessing nested data in the 'event' object
|
264 |
|
265 |
if continueFlag:
|
|
|
|
|
266 |
|
267 |
database_pages = fetch_all_database_pages(notion, guiding_db_an)
|
268 |
lu_name_db = notion.databases.query(database_id=land_use_abbr)
|
|
|
246 |
print(f"Reset of database {database_id} completed.")
|
247 |
|
248 |
|
249 |
+
|
250 |
guiding_db_an = "1dafd962f861406d928bbdf109b9bfe4"
|
251 |
land_use_abbr = "3b0e681e922a41409b6a13c11105c56a"
|
252 |
target_db = "ec2a636f079d4d7686f94901b6238242"
|
|
|
263 |
# Accessing nested data in the 'event' object
|
264 |
|
265 |
if continueFlag:
|
266 |
+
tkn = os.environ.get("SPECKLE_TOKEN")
|
267 |
+
notion = Client(auth=tkn)
|
268 |
|
269 |
database_pages = fetch_all_database_pages(notion, guiding_db_an)
|
270 |
lu_name_db = notion.databases.query(database_id=land_use_abbr)
|