Actually save timestamps for telegram_file
This commit is contained in:
@@ -92,9 +92,9 @@ class TelegramFile:
|
|||||||
|
|
||||||
async def insert(self) -> None:
|
async def insert(self) -> None:
|
||||||
q = (
|
q = (
|
||||||
"INSERT INTO telegram_file (id, mxc, mime_type, was_converted, size, width, height, "
|
"INSERT INTO telegram_file (id, mxc, mime_type, was_converted, timestamp,"
|
||||||
" thumbnail, decryption_info) "
|
" size, width, height, thumbnail, decryption_info) "
|
||||||
"VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)"
|
"VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)"
|
||||||
)
|
)
|
||||||
await self.db.execute(
|
await self.db.execute(
|
||||||
q,
|
q,
|
||||||
@@ -102,6 +102,7 @@ class TelegramFile:
|
|||||||
self.mxc,
|
self.mxc,
|
||||||
self.mime_type,
|
self.mime_type,
|
||||||
self.was_converted,
|
self.was_converted,
|
||||||
|
self.timestamp,
|
||||||
self.size,
|
self.size,
|
||||||
self.width,
|
self.width,
|
||||||
self.height,
|
self.height,
|
||||||
|
|||||||
Reference in New Issue
Block a user