This commit is contained in:
Jon Herron 2023-03-07 10:00:16 -05:00
parent 0fa44d3d80
commit c1a9168964
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ class SecretService:
) from e ) from e
return secret_model return secret_model
@classmethod @staticmethod
def get_secret(cls, key: str) -> SecretModel: def get_secret(key: str) -> SecretModel:
"""Get_secret.""" """Get_secret."""
secret = db.session.query(SecretModel).filter(SecretModel.key == key).first() secret = db.session.query(SecretModel).filter(SecretModel.key == key).first()
if isinstance(secret, SecretModel): if isinstance(secret, SecretModel):