From d91c49568d268cbe4a4bfb4eb846466142b2e649 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 11 Aug 2020 16:50:28 -0700 Subject: [PATCH] Fix accidentally quoted variable --- src/replit/database/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replit/database/__init__.py b/src/replit/database/__init__.py index 3b348ac..01d2439 100644 --- a/src/replit/database/__init__.py +++ b/src/replit/database/__init__.py @@ -462,7 +462,7 @@ class JSONKey(AsyncJSONKey): """ if self.dtype is not dict: raise TypeError("key() can only be used if the datatype is dict") - return self.get().get("name", default) + return self.get().get(name, default) def __setitem__(self, name: str, value: JSON_TYPE) -> None: """Sets a key inside the JSONKey's value if it is a dict.