Skip to content

Commit 876a896

Browse files
author
anna.yamkovaya
committed
deleted unused code in report.py
1 parent e367af8 commit 876a896

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test2text/pages/report.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,11 @@
55
def add_new_line(summary):
66
return summary.replace("\n", "<br>")
77

8-
# Data structure to store pages
9-
pages = {}
10-
11-
def add_page(page_name):
12-
pages[page_name] = ""
13-
148

159
def make_a_report():
1610
st.header("Test2Text Report")
1711

1812
db = DbClient("./private/requirements.db")
19-
all_reqs_count = db.conn.execute(
20-
"SELECT COUNT(*) FROM Requirements"
21-
).fetchone()[0]
2213

2314
st.subheader("Table of Contents")
2415

@@ -67,6 +58,7 @@ def write_requirement():
6758
for test_script in current_test_scripts:
6859
st.html(f"<li>{test_script}</li>")
6960
st.html("</ul>")
61+
7062
progress_bar = st.progress(0, "Processing...")
7163
if not data.fetchall():
7264
st.error("There is no data to inspect.\nPlease upload annotations.")
@@ -97,6 +89,5 @@ def write_requirement():
9789
write_requirement()
9890

9991

100-
10192
if __name__ == "__main__":
10293
make_a_report()

0 commit comments

Comments
 (0)