From 5f5e1cf802a44f61247621bbb994895fc17762a4 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:42:56 +0300 Subject: [PATCH] Update db.py --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 2710ed7..8a1e531 100644 --- a/db.py +++ b/db.py @@ -21,13 +21,13 @@ class ClutterDB: json_data[key] = value json.dump(json_data, json_file, indent=4) - def get(self, key: str, **kwargs): + def get(self, key: str, *, default=None): with open(self.path_to_json, mode="r") as json_file: json_data = json.load(json_file) if key in json_data: return json_data[key] else: - return kwargs.get("default", None) + return default def all(self): with open(self.path_to_json, mode="r") as json_file: