db/python/tables/participant.py
async def update_many_participant_external_ids(
        self, internal_to_external_id: Dict[int, str]
    ):
        """Update many participant external_ids through the {internal: external} map"""
        _query = 'UPDATE participant SET external_id = :external_id WHERE id = :participant_id'
        mapped_values = [
            {'participant_id': k, 'external_id': v}
            for k, v in internal_to_external_id.items()
        ]
        await self.connection.execute_many(_query, mapped_values)
        return True
Update many participant external_ids through the {internal: external} map
Update many participant external_ids through the {internal: external} map
Update many participant external_ids through the { internal : external } map
async def update_many_participant_external_ids(
        self, internal_to_external_id: Dict[int, str]
    ):
        _query = 'UPDATE participant SET external_id = :external_id WHERE id = :participant_id'
        mapped_values = [
            {'participant_id': k, 'external_id': v}
            for k, v in internal_to_external_id.items()
        ]
        await self.connection.execute_many(_query, mapped_values)
        return True
async def update_many_participant_external_ids ( self , internal_to_external_id : Dict [ int , str ] ) : _query = 'UPDATE participant SET external_id = :external_id WHERE id = :participant_id' mapped_values = [ { 'participant_id' : k , 'external_id' : v } for k , v in internal_to_external_id . items ( ) ] await self . connection . execute_many ( _query , mapped_values ) return True
Update many participant external_ids through the {internal: external} map
Update many participant external_ids through the { internal : external } map
"""Update many participant external_ids through the {internal: external} map"""
self
internal_to_external_id
Dict[int, str]