added function to get all data
This commit is contained in:
@@ -176,3 +176,9 @@ def get_content():
|
||||
query = f'SELECT * FROM {dt._name} ORDER BY time DESC '
|
||||
df = pd.read_sql_query(query, dt.con)
|
||||
return df['content']
|
||||
|
||||
def get_all():
|
||||
with Data_table() as dt:
|
||||
query = f'SELECT * FROM {dt._name} ORDER BY time DESC '
|
||||
df = pd.read_sql_query(query, dt.con)
|
||||
return df
|
||||
Reference in New Issue
Block a user