Skip to content

Commit

Permalink
fixed variable naming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
snwagh committed Sep 9, 2024
1 parent fc4a31e commit f418c3a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ def email_body(notification: "Notification", context: AuthedServiceContext) -> s

# method = context.server.get_service_method(SettingsService.get)
# settings = method(context=context)
# expiry_time = settings.pwd_token_config.token_exp_seconds
# expiry_time = settings.pwd_token_config.token_exp_min

# Option 2
settings_service = context.server.get_service("settingsservice")
settings = settings_service.get(context)
expiry_time = settings.pwd_token_config.token_exp_seconds
expiry_time = settings.pwd_token_config.token_exp_min

# Option 3
# expiry_time = context.server.settings.pwd_token_config.token_exp_seconds
# expiry_time = context.server.settings.pwd_token_config.token_exp_min

# Option 4
# from ...server.service_registry import ServiceRegistry
# settings = ServiceRegistry.get_service("settings").get(context=context)
# expiry_time = settings.pwd_token_config.token_exp_seconds
# expiry_time = settings.pwd_token_config.token_exp_min

head = """<head>
<style>
Expand Down

0 comments on commit f418c3a

Please sign in to comment.