Update README.md

This commit is contained in:
Vardhaman
2022-06-07 09:41:46 +05:30
committed by GitHub
parent 89c3d5167c
commit 5f3ccda520

View File

@@ -1221,7 +1221,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
```