Skip to content

Commit

Permalink
Formated code
Browse files Browse the repository at this point in the history
Signed-off-by: Supratick Mondal <[email protected]>
  • Loading branch information
sonustar committed Sep 14, 2024
1 parent bdf4edf commit aeaad4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/routes/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def get_hyperledger_fabric_answer(question):


@router.get("/response-keys", response_model=List[Dict[str, str]])
async def get_response_keys() -> List[Dict[str, str]]:
def get_response_keys() -> List[Dict[str, str]]:
# Create a list of dictionaries with 'id' and 'name' keys
res = [
{"id": str(index + 1), "name": key}
for index, key in enumerate(responses.keys())
]
return res
return res



Expand Down

0 comments on commit aeaad4b

Please sign in to comment.