Skip to content

Commit

Permalink
bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Dec 4, 2024
1 parent b16a91b commit ce08cde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3679,7 +3679,7 @@ async def get_sector_overview(api_key: str = Security(get_api_key)):

@app.post("/industry-stocks")
async def get_sector_overview(data: TickerData, api_key: str = Security(get_api_key)):
ticker = data.ticker.upper()
ticker = data.ticker.lower()
cache_key = f"industry-stocks-{ticker}"
cached_result = redis_client.get(cache_key)
if cached_result:
Expand All @@ -3693,7 +3693,6 @@ async def get_sector_overview(data: TickerData, api_key: str = Security(get_api_
res = orjson.loads(file.read())
except:
res = {}

data = orjson.dumps(res)
compressed_data = gzip.compress(data)

Expand Down

0 comments on commit ce08cde

Please sign in to comment.