Skip to content

Commit

Permalink
Ensure consistent TID formatting
Browse files Browse the repository at this point in the history
Ensure consistent TID formatting by converting to string
  • Loading branch information
Lenochxd committed Sep 8, 2024
1 parent c5315c1 commit 6202543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def dispatch(self, request: Request, call_next):
cache = {}
cache_max_size = 128
def find_id_type(tid: str):
tid = tid.upper()
tid = str(tid).upper()

# Check if result is in cache
if tid in cache:
Expand Down

0 comments on commit 6202543

Please sign in to comment.