Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Oct 16, 2024
1 parent d892b1d commit b57d28a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions omnipath_metabo/schema/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def __del__(self):


class Loader():

def __init__(self, resource, con):
self.scheme = resource.scheme
self.resource = resource
Expand All @@ -71,7 +72,7 @@ def load(self):
self.session.execute(insert_resource)
ids = collections.defaultdict(set)
raw_con = self.con.engine.raw_connection()

with raw_con.cursor() as cursor:

query = """
Expand Down Expand Up @@ -117,11 +118,11 @@ def load(self):

with raw_con.cursor() as cursor:
query = """
INSERT INTO identifiers (identifier, structure_id, resource_id) VALUES %s
INSERT INTO identifiers (identifier, structure_id, resource_id) VALUES %s
"""
psycopg2.extras.execute_values(cursor, query, insert_ids, page_size = 1000)


raw_con.commit()

#self.indexer()
Expand Down

0 comments on commit b57d28a

Please sign in to comment.