diff --git a/code/database.py b/code/database.py index 07695da..64f3174 100644 --- a/code/database.py +++ b/code/database.py @@ -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'] \ No newline at end of file + 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 \ No newline at end of file