From 2546ec2fd18a2b9591caf7797b996589fb1065bd Mon Sep 17 00:00:00 2001 From: Captain Ezio Date: Sun, 24 Nov 2024 20:29:33 +0530 Subject: [PATCH 1/2] latency reduced --- Powers/supports.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Powers/supports.py b/Powers/supports.py index d7062bb0..b66f8960 100644 --- a/Powers/supports.py +++ b/Powers/supports.py @@ -19,20 +19,25 @@ def get_support_staff(want="all"): dev, sudo, whitelist, dev_level, sudo_level, all """ support = SUPPORTS() - devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev") - sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo") - whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist") if want in ["dev", "dev_level"]: + devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev") wanted = list(devs) if want == "dev_level": wanted.append(OWNER_ID) elif want == "sudo": + sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo") wanted = list(sudo) elif want == "whitelist": + whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist") wanted = list(whitelist) elif want == "sudo_level": + devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev") + sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo") wanted = list(sudo) + list(devs) + [OWNER_ID] else: + devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev") + sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo") + whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist") wanted = list(set([int(OWNER_ID)] + list(devs) + list(sudo) + list(whitelist))) return wanted or [] From 890f75a1aa67c72f16c598f311fb0d6d519ca7d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 05:03:35 +0000 Subject: [PATCH 2/2] Bump qrcode from 7.4.2 to 8.0 Bumps [qrcode](https://github.com/lincolnloop/python-qrcode) from 7.4.2 to 8.0. - [Changelog](https://github.com/lincolnloop/python-qrcode/blob/main/CHANGES.rst) - [Commits](https://github.com/lincolnloop/python-qrcode/compare/v7.4.2...v8.0) --- updated-dependencies: - dependency-name: qrcode dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2fdc517e..881efac8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ python-dateutil==2.8.2 pytube==15.0.0 pytz==2024.1 pyyaml==6.0.1 -qrcode==7.4.2 +qrcode==8.0 regex==2023.12.25 requests==2.32.2 rfc3986==1.5.0