Spaces:
Runtime error
Runtime error
IsaacKerson
commited on
Commit
•
8b02b83
1
Parent(s):
52217c4
remove balloons
Browse files
app.py
CHANGED
@@ -8,16 +8,6 @@ from pages.utils import add_blanks, chunker, random_session_id, check_answer
|
|
8 |
|
9 |
DATABASE = 'vocabulary.db'
|
10 |
|
11 |
-
# def chunker(seq, size):
|
12 |
-
# return (seq[pos:pos + size] for pos in range(0, len(seq), size))
|
13 |
-
|
14 |
-
# def random_session_id():
|
15 |
-
# alphabet = string.ascii_lowercase + string.digits
|
16 |
-
# return ''.join(random.choices(alphabet, k=12))
|
17 |
-
|
18 |
-
# def check_answer(item, answer):
|
19 |
-
# return item == answer
|
20 |
-
|
21 |
def db_connect(database):
|
22 |
conn = sqlite3.connect(database)
|
23 |
c = conn.cursor()
|
@@ -57,8 +47,6 @@ def form_callback(questions):
|
|
57 |
# query = "SELECT * FROM responses WHERE session_id = ?"
|
58 |
# for item in c.execute(query, session_tup):
|
59 |
# st.write(item)
|
60 |
-
if int(score_val) == 100:
|
61 |
-
st.balloons()
|
62 |
|
63 |
if "form_submit" not in st.session_state:
|
64 |
c, conn = db_connect(DATABASE)
|
|
|
8 |
|
9 |
DATABASE = 'vocabulary.db'
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
def db_connect(database):
|
12 |
conn = sqlite3.connect(database)
|
13 |
c = conn.cursor()
|
|
|
47 |
# query = "SELECT * FROM responses WHERE session_id = ?"
|
48 |
# for item in c.execute(query, session_tup):
|
49 |
# st.write(item)
|
|
|
|
|
50 |
|
51 |
if "form_submit" not in st.session_state:
|
52 |
c, conn = db_connect(DATABASE)
|