Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivated Account Changes #2146

Merged
merged 12 commits into from Dec 21, 2021
3 changes: 3 additions & 0 deletions discovery-provider/src/queries/get_attestation.py
Expand Up @@ -26,6 +26,8 @@
REWARDS_MANAGER_ACCOUNT_PUBLIC_KEY = None
if REWARDS_MANAGER_ACCOUNT:
REWARDS_MANAGER_ACCOUNT_PUBLIC_KEY = PublicKey(REWARDS_MANAGER_ACCOUNT)


class Attestation:
"""Represents DN attesting to a user completing a given challenge"""

Expand Down Expand Up @@ -161,6 +163,7 @@ def get_attestation(
.filter(
User.is_current == True,
User.user_id == user_id,
User.is_deactivated == False,
rickyrombo marked this conversation as resolved.
Show resolved Hide resolved
)
.one_or_none()
)
Expand Down