nastasiasnk commited on
Commit
6dffaaa
·
verified ·
1 Parent(s): 5080e55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -16
app.py CHANGED
@@ -9,22 +9,15 @@ from collections import OrderedDict
9
 
10
 
11
 
12
- # define variables
13
-
14
- # distance matrices
15
- branch_name_dm = "graph_geometry/distance_matrix"
16
- commit_id_dm = "cfde6f4ba4" # ebcfc50abe/commits/cfde6f4ba4
17
- dm_activityNodes = "activity_node+distance_matrix_ped_mm_noEntr"
18
- dm_transportStops = "an_stations+distance_matrix_ped_mm_art_noEntr"
19
-
20
- # land use attributes
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