mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-04 13:45:13 +00:00
Cleanup
This commit is contained in:
parent
0fa44d3d80
commit
c1a9168964
@ -47,8 +47,8 @@ class SecretService:
|
||||
) from e
|
||||
return secret_model
|
||||
|
||||
@classmethod
|
||||
def get_secret(cls, key: str) -> SecretModel:
|
||||
@staticmethod
|
||||
def get_secret(key: str) -> SecretModel:
|
||||
"""Get_secret."""
|
||||
secret = db.session.query(SecretModel).filter(SecretModel.key == key).first()
|
||||
if isinstance(secret, SecretModel):
|
||||
|
Loading…
x
Reference in New Issue
Block a user