Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions flask/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ def evaluate_statsig_flags():
flag_values[gate] = result
except Exception as e:
print(f"Error evaluating gate {gate}: {e}")

def get_subscription_plan(type):
return 'monthly' if type == 'monthly' else 'annual'
Comment on lines +75 to +76
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter name type shadows the built-in Python type() function. This is considered bad practice as it can lead to confusion and potential bugs if the built-in function needs to be used within the function scope. Consider renaming to a more descriptive name like plan_type or subscription_type.

Did we get this right? 👍 / 👎 to inform future reviews.

Loading