Update README-zh-TW.md
parent
d353ef8c75
commit
fb723c2358
|
@ -1173,7 +1173,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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue