From c547ba59906bdd0ccebe5d4592739227dd0c73eb Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 28 May 2022 12:15:54 +1000 Subject: Convert from python "...".format() to f"..." --- backend/data/genImgsForWeb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/data/genImgsForWeb.py') diff --git a/backend/data/genImgsForWeb.py b/backend/data/genImgsForWeb.py index 91a1cde..9db260f 100755 --- a/backend/data/genImgsForWeb.py +++ b/backend/data/genImgsForWeb.py @@ -76,7 +76,7 @@ for i in range(inputImgIdx, len(inputImgList)): imgName = inputImgList[i] [eolIdStr, otherStr] = imgName.split(" ") contentId = int(otherStr.split(".")[0]) - print("Converting {}".format(imgName)) + print(f"Converting {imgName}") subprocess.run( ['npx', 'smartcrop-cli', '--width', str(IMG_OUT_SZ), -- cgit v1.2.3