Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,16 +10,17 @@ def get_database_session(_sessionmaker, url):
|
|
10 |
# Create a database connection object that points to the URL.
|
11 |
return connection
|
12 |
|
13 |
-
s1 = get_database_session(create_sessionmaker(), st.session_state.qp)
|
14 |
# Actually executes the function, since this is the first time it was
|
15 |
# encountered.
|
16 |
|
17 |
-
s2 = get_database_session(create_sessionmaker(), st.session_state.qp)
|
18 |
# Does not execute the function. Instead, returns its previously computed
|
19 |
# value - even though the _sessionmaker parameter was different
|
20 |
# in both calls.
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
# callback to update query param on selectbox change
|
25 |
def update_params():
|
|
|
10 |
# Create a database connection object that points to the URL.
|
11 |
return connection
|
12 |
|
13 |
+
s1 = get_database_session(create_sessionmaker(), st.session_state.qp)
|
14 |
# Actually executes the function, since this is the first time it was
|
15 |
# encountered.
|
16 |
|
17 |
+
s2 = get_database_session(create_sessionmaker(), st.session_state.qp)
|
18 |
# Does not execute the function. Instead, returns its previously computed
|
19 |
# value - even though the _sessionmaker parameter was different
|
20 |
# in both calls.
|
21 |
|
22 |
+
def create_sessionmaker():
|
23 |
+
a=a+1
|
24 |
|
25 |
# callback to update query param on selectbox change
|
26 |
def update_params():
|