Ver código fonte

Fix some strings that should be combined

Tulir Asokan 3 anos atrás
pai
commit
319d0b330a
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      mautrix_signal/db/user.py
  2. 2 2
      mautrix_signal/portal.py

+ 1 - 1
mautrix_signal/db/user.py

@@ -36,7 +36,7 @@ class User:
     notice_room: RoomID | None
 
     async def insert(self) -> None:
-        q = 'INSERT INTO "user" (mxid, username, uuid, notice_room) ' "VALUES ($1, $2, $3, $4)"
+        q = 'INSERT INTO "user" (mxid, username, uuid, notice_room) VALUES ($1, $2, $3, $4)'
         await self.db.execute(q, self.mxid, self.username, self.uuid, self.notice_room)
 
     async def update(self) -> None:

+ 2 - 2
mautrix_signal/portal.py

@@ -574,7 +574,7 @@ class Portal(DBPortal, BasePortal):
             self.log.info(f"{user.mxid} left private chat portal with {self.chat_id}")
             if user.username == self.receiver:
                 self.log.info(
-                    f"{user.mxid} was the recipient of this portal. " "Cleaning up and deleting..."
+                    f"{user.mxid} was the recipient of this portal. Cleaning up and deleting..."
                 )
                 await self.cleanup_and_delete()
         else:
@@ -1335,7 +1335,7 @@ class Portal(DBPortal, BasePortal):
             )
         elif isinstance(info, GroupV2ID) and not isinstance(info, GroupV2):
             self.log.debug(
-                f"create_matrix_room() called with {info}, " "fetching full info from signald"
+                f"create_matrix_room() called with {info}, fetching full info from signald"
             )
             info = await self.signal.get_group(source.username, info.id, info.revision or -1)
             if not info: