Basic Table
All checks were successful
Build and push Docker image at git tag / build (push) Successful in 1m44s
All checks were successful
Build and push Docker image at git tag / build (push) Successful in 1m44s
This commit is contained in:
@ -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']
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user