mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-07 21:19:53 +00:00
lint
This commit is contained in:
parent
69f45863f6
commit
e112b46063
@ -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",
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user