Skip to content

Commit

Permalink
Add marketplace app review uids
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin committed Dec 15, 2024
1 parent 4228f1b commit e83154b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/utils/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from collections import defaultdict
from datetime import datetime, timezone
from typing import List
Expand All @@ -17,6 +18,9 @@
from utils import stripe


MarketplaceAppReviewUIDs = os.getenv('MARKETPLACE_APP_REVIEWERS').split(',') if os.getenv('MARKETPLACE_APP_REVIEWERS') else []


# ********************************
# ************ TESTER ************
# ********************************
Expand Down Expand Up @@ -314,6 +318,8 @@ def upsert_app_payment_link(app_id: str, is_paid_app: bool, price: float, paymen
return app

def get_is_user_paid_app(app_id: str, uid: str):
if uid in MarketplaceAppReviewUIDs:
return True
return get_user_paid_app(app_id, uid) is not None

def paid_app(app_id: str, uid: str):
Expand Down

0 comments on commit e83154b

Please sign in to comment.