Browse Source

Fix type and too long line

Tulir Asokan 3 years ago
parent
commit
864002a0bc
1 changed files with 6 additions and 5 deletions
  1. 6 5
      mautrix_instagram/db/message.py

+ 6 - 5
mautrix_instagram/db/message.py

@@ -35,13 +35,14 @@ class Message:
     client_context: str | None
     receiver: int
     sender: int
-    ig_timestamp: int
+    ig_timestamp: int | None
 
     async def insert(self) -> None:
-        q = (
-            "INSERT INTO message (mxid, mx_room, item_id, client_context, receiver, sender, ig_timestamp) "
-            "VALUES ($1, $2, $3, $4, $5, $6, $7)"
-        )
+        q = """
+            INSERT INTO message (mxid, mx_room, item_id, client_context, receiver, sender,
+                                 ig_timestamp)
+            VALUES ($1, $2, $3, $4, $5, $6, $7)
+        """
         await self.db.execute(
             q,
             self.mxid,