From 9aa0a4eaeaf59bbd9909a797ba5619c252ff2c44 Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:39:33 +0530 Subject: [PATCH] Update README-zh-Hans.md --- README-zh-Hans.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-zh-Hans.md b/README-zh-Hans.md index 368f588a..f40e80c8 100644 --- a/README-zh-Hans.md +++ b/README-zh-Hans.md @@ -1181,7 +1181,7 @@ def get_user(self, user_id): if user is None: user = db.query("SELECT * FROM users WHERE user_id = {0}", user_id) if user is not None: - key = "user.{0}".format(user_id) + key = f"user.{user_id}" cache.set(key, json.dumps(user)) return user ```