Spaces:
Running
Running
Commit
·
78a4144
1
Parent(s):
2c40588
corrected path
Browse files
app.py
CHANGED
|
@@ -220,7 +220,8 @@ def data():
|
|
| 220 |
# Read sqlite query results into a pandas DataFrame
|
| 221 |
# con = sqlite3.connect("database.db")
|
| 222 |
# df = pd.read_sql_query(f"SELECT * from {tblname}", con)
|
| 223 |
-
|
|
|
|
| 224 |
top_records = df.copy()
|
| 225 |
# con.close()
|
| 226 |
html_top_records = top_records.to_html(index=False, table_id= f'dtable_{tblname}', classes='display nowrap table table-bordered table-striped table-condensed small p-1', justify='left')
|
|
|
|
| 220 |
# Read sqlite query results into a pandas DataFrame
|
| 221 |
# con = sqlite3.connect("database.db")
|
| 222 |
# df = pd.read_sql_query(f"SELECT * from {tblname}", con)
|
| 223 |
+
filepath = f".referencefiles/{tblname}.csv"
|
| 224 |
+
df = pd.read_csv(filepath)
|
| 225 |
top_records = df.copy()
|
| 226 |
# con.close()
|
| 227 |
html_top_records = top_records.to_html(index=False, table_id= f'dtable_{tblname}', classes='display nowrap table table-bordered table-striped table-condensed small p-1', justify='left')
|