Basic Table
All checks were successful
Build and push Docker image at git tag / build (push) Successful in 1m44s

This commit is contained in:
2024-10-08 21:00:14 +02:00
parent e376956def
commit a4d0803d20
16 changed files with 269 additions and 23 deletions

View File

@ -154,7 +154,7 @@ class DB():
with self.db:
for row in self.db.execute(
"SELECT * FROM Messages {} LIMIT :lim OFFSET :off".format(where_clause),
"SELECT * FROM Messages {} ORDER BY time DESC LIMIT :lim OFFSET :off".format(where_clause),
params
):
yield self._create_row_object(row)
@ -165,7 +165,7 @@ class DB():
sender=row['sender'],
recipient=row['recipient'],
time=int(datetime.strptime(row['time'], self._DB_TIME_FORMAT).timestamp()),
message=AgentMessage.model_construct(row['json']),
message=AgentMessage.model_validate_json(row['json']),
processed=row['processed']
)