Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
rce committed Aug 6, 2024
1 parent 53b33d8 commit cfdd0cf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/kansallisgalleria.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ async def cmd_art(client, message, _):
embed.set_image(url=o["multimedia"][0]["jpg"]["1000"])
await message.channel.send(embed=embed)

@retry.on_any_exception()
@perf.time_async("KANSALLISGALLERIA_API")
async def call_api(endpoint, params = {}):
async with call_api_raw_stream(endpint, params) as r:
return await r.json()

#@retry.on_any_exception()
#@perf.time_async("KANSALLISGALLERIA_API")
@asynccontextmanager
async def call_api_raw_stream(endpoint, params = {}):
headers = {"x-api-key": os.environ["KANSALLISGALLERIA_API_KEY"]}
Expand Down

0 comments on commit cfdd0cf

Please sign in to comment.