Skip to content

Commit

Permalink
Remove dead code InteractiveToolPropagatorSQLAlchemy.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
kysrpex committed Sep 3, 2024
1 parent 4e6688c commit 0b6ad17
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/galaxy/managers/interactivetool.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ def __init__(self, database_url, encode_id):
self._engine = create_engine(database_url)
self._encode_id = encode_id

def get(self, key, key_type):
with self._engine.connect() as conn:
stmt = select(*gxitproxy.c["token", "host", "port", "info"]).where(
gxitproxy.c.key == key,
gxitproxy.c.key_type == key_type,
)
cursor_result = conn.execute(stmt)
result = cursor_result.fetchone()

if result is None:
log.warning("get(): invalid key: %s key_type %s", key, key_type)
return None

return dict(key=key, key_type=key_type, **dict(zip(cursor_result.keys(), result)))

def save(self, key, key_type, token, host, port, info=None):
"""
Write out a key, key_type, token, value store that is can be used for coordinating with external resources.
Expand Down

0 comments on commit 0b6ad17

Please sign in to comment.