Ashhar commited on
Commit
1f01943
1 Parent(s): e20d9c0

fix cdn error

Browse files
Files changed (1) hide show
  1. helpers/imageCdn.py +2 -1
helpers/imageCdn.py CHANGED
@@ -16,7 +16,8 @@ def __getImageId():
16
 
17
 
18
  def getCdnUrl(imagePath: str) -> str:
19
- imageId = __getImageId()
 
20
  cloudinary.uploader.upload(imagePath, public_id=imageId, unique_filename=False, overwrite=True)
21
  U.pprint(f"Image uploaded to CDN: {imageId}")
22
  srcURL = CloudinaryImage(imageId).build_url()
 
16
 
17
 
18
  def getCdnUrl(imagePath: str) -> str:
19
+ imageId = str(__getImageId())
20
+ U.pprint(f"{imageId=}")
21
  cloudinary.uploader.upload(imagePath, public_id=imageId, unique_filename=False, overwrite=True)
22
  U.pprint(f"Image uploaded to CDN: {imageId}")
23
  srcURL = CloudinaryImage(imageId).build_url()