Skip to content

Commit

Permalink
Fix LD flags
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jan 25, 2024
1 parent 5e329e6 commit 08f2f69
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth-api/src/auth_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
from auth_api.extensions import mail
from auth_api.models import db, ma
from auth_api.resources import endpoints
from auth_api.services.flags import flags
from auth_api.utils.cache import cache
from auth_api.utils.run_version import get_run_version
from auth_api.utils.util_logging import setup_logging
from auth_api.services import flags

setup_logging(os.path.join(_Config.PROJECT_ROOT, 'logging.conf')) # important to do this first

Expand Down
2 changes: 0 additions & 2 deletions auth-api/src/auth_api/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@
from .user import User
from .user_settings import UserSettings
from .flags import Flags

flags = Flags()
2 changes: 1 addition & 1 deletion auth-api/src/auth_api/services/affiliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from auth_api.models.membership import Membership as MembershipModel
from auth_api.schemas import AffiliationSchema
from auth_api.services.entity import Entity as EntityService
from auth_api.services import flags
from auth_api.services.flags import flags
from auth_api.services.org import Org as OrgService
from auth_api.services.user import User as UserService
from auth_api.utils.enums import ActivityAction, CorpType, NRActionCodes, NRNameStatus, NRStatus
Expand Down
3 changes: 3 additions & 0 deletions auth-api/src/auth_api/services/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ def value(self, flag: str, default=None, user: User = None):
flag_user = self._get_anonymous_user()

return client.variation(flag, flag_user, default)


flags = Flags()

0 comments on commit 08f2f69

Please sign in to comment.