Skip to content

Commit

Permalink
error fixing not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nforsg committed Aug 10, 2023
1 parent df30d01 commit 41bc450
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list_emulations() -> List[EmulationEnvConfig]:
return records

@staticmethod
def list_emulations_ids() -> List[Tuple]:
def list_emulations_ids() -> List[Tuple[int, str]]:
"""
:return: A list of emulation ids in the metastore
"""
Expand All @@ -67,7 +67,7 @@ def list_emulations_ids() -> List[Tuple]:
f"{constants.METADATA_STORE.HOST_PROPERTY}={constants.METADATA_STORE.HOST}") as conn:
with conn.cursor() as cur:
cur.execute(f"SELECT id,name FROM {constants.METADATA_STORE.EMULATIONS_TABLE}")
records = cur.fetchall()
records: List[Tuple[int, str]] = cur.fetchall()
return records

@staticmethod
Expand Down Expand Up @@ -124,7 +124,7 @@ def list_simulations() -> List[SimulationEnvConfig]:
return records

@staticmethod
def list_simulation_ids() -> List[Dict]:
def list_simulation_ids() -> List[Tuple[str, int]]:
"""
:return: A list of simulation ids and names in the metastore
"""
Expand All @@ -134,7 +134,7 @@ def list_simulation_ids() -> List[Dict]:
f"{constants.METADATA_STORE.HOST_PROPERTY}={constants.METADATA_STORE.HOST}") as conn:
with conn.cursor() as cur:
cur.execute(f"SELECT id,name FROM {constants.METADATA_STORE.SIMULATIONS_TABLE}")
records = cur.fetchall()
records: List[Tuple[str, int]] = cur.fetchall()
return records

@staticmethod
Expand Down Expand Up @@ -476,7 +476,7 @@ def list_emulation_statistics() -> List[EmulationStatistics]:
return records

@staticmethod
def list_emulation_statistics_ids() -> List[Tuple]:
def list_emulation_statistics_ids() -> List[Tuple[int, str]]:
"""
:return: A list of emulation statistics ids in the metastore
"""
Expand All @@ -486,7 +486,7 @@ def list_emulation_statistics_ids() -> List[Tuple]:
f"{constants.METADATA_STORE.HOST_PROPERTY}={constants.METADATA_STORE.HOST}") as conn:
with conn.cursor() as cur:
cur.execute(f"SELECT id,emulation_name FROM {constants.METADATA_STORE.EMULATION_STATISTICS_TABLE}")
records = cur.fetchall()
records: List[Tuple[int, str]] = cur.fetchall()
return records

@staticmethod
Expand Down

0 comments on commit 41bc450

Please sign in to comment.