diff --git a/backend/tabby/app/api/app_version.py b/backend/tabby/app/api/app_version.py index 19e9002..2b94ce0 100644 --- a/backend/tabby/app/api/app_version.py +++ b/backend/tabby/app/api/app_version.py @@ -42,8 +42,7 @@ class AppVersionViewSet(ListModelMixin, GenericViewSet): plugins = [ os.path.basename(x["name"]) for x in fs.listdir(dir) - if x["type"] == "directory" - and os.path.basename(x["name"]) + if x["type"] == "directory" and os.path.basename(x["name"]) not in [ "tabby-web-container", "tabby-web-demo", diff --git a/backend/tabby/app/api/user.py b/backend/tabby/app/api/user.py index 76fae06..fd17475 100644 --- a/backend/tabby/app/api/user.py +++ b/backend/tabby/app/api/user.py @@ -33,9 +33,7 @@ class UserSerializer(ModelSerializer): def get_is_pro(self, obj): return ( - obj.force_pro - or not settings.GITHUB_ELIGIBLE_SPONSORSHIPS - or check_is_sponsor_cached(obj) + obj.force_pro or not settings.GITHUB_ELIGIBLE_SPONSORSHIPS or check_is_sponsor_cached(obj) ) def get_is_sponsor(self, obj): diff --git a/backend/tabby/app/sponsors.py b/backend/tabby/app/sponsors.py index 9c85ee6..4385104 100644 --- a/backend/tabby/app/sponsors.py +++ b/backend/tabby/app/sponsors.py @@ -73,8 +73,7 @@ def check_is_sponsor(user: User) -> bool: ): continue if ( - info["totalRecurringMonthlyPriceInDollars"] - >= settings.GITHUB_SPONSORS_MIN_PAYMENT + info["totalRecurringMonthlyPriceInDollars"] >= settings.GITHUB_SPONSORS_MIN_PAYMENT ): return True