def insertDocuments(self):
        self.showStatus("insert documents")
        table = self.getTable('document', 'document_id', 
                              ('document_uri',), 
                              ('document_uri',), 
                              set((docUri,) 
                                  for docUri in self.modelXbrl.urlDocs.keys()
                                  if self.existingDocumentIds not in docUri),
                              checkIfExisting=True)
        self.documentIds = dict((uri, id)
                                for id, uri in table)
        self.documentIds.update(self.existingDocumentIds)
        table = self.getTable('accession_document_association', 'accession_document_association_id', 
                              ('accession_id','document_id'), 
                              ('document_id',), 
                              tuple((self.accessionId, docId) 
                                    for docId in self.documentIds.values()),
                              checkIfExisting=True)
dataset/ETHPy150Open Arelle/Arelle/arelle/plugin/xbrlDB/XbrlPublicPostgresDB.py/XbrlPostgresDatabaseConnection.insertDocuments/swapped operands of `not in`