added function to get all data
This commit is contained in:
+7
-1
@@ -175,4 +175,10 @@ def get_content():
|
||||
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['content']
|
||||
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