Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,22 +9,15 @@ from collections import OrderedDict
|
|
9 |
|
10 |
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
branch_name_lu = "graph_geometry/activity_nodes_with_land_use"
|
22 |
-
commit_id_lu = "13ae6cdd30"
|
23 |
-
|
24 |
-
# livability attributes
|
25 |
-
notion_lu_domains = "407c2fce664f4dde8940bb416780a86d"
|
26 |
-
notion_domain_attributes = "01401b78420f4296a2449f587d4ed9c9"
|
27 |
-
|
28 |
|
29 |
|
30 |
|
|
|
9 |
|
10 |
|
11 |
|
12 |
+
from config import notion_lu_domains , notion_domain_attributes
|
13 |
+
from imports_utils import fetch_all_database_pages
|
14 |
+
|
15 |
+
if notionToken:
|
16 |
+
notion = client_notion(auth=userdata.get(notionToken))
|
17 |
+
landuse_attributes = fetch_all_database_pages(notion, landuseDatabaseId)
|
18 |
+
livability_attributes = fetch_all_database_pages(notion, subdomainAttributesDatabaseId)
|
19 |
+
else:
|
20 |
+
print ("Notion token is not provided")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
|