From 37d827adf029d9a6d2ec3e356270de107b366d42 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Sep 2023 16:20:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BanID.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BanID.py b/BanID.py index 5079a97..f495e6b 100644 --- a/BanID.py +++ b/BanID.py @@ -81,4 +81,7 @@ class BanID(): return db[username]['globalban'] #кол-во репутации def viewrep(self, username): - ... \ No newline at end of file + filetemp=open(self.filename, 'r') + db=json.loads(filetemp.read()) + filetemp.close() + return db[username]['rep'] \ No newline at end of file