onion: adds brn to onion key
This commit is contained in:
parent
9373e107fc
commit
218779bd20
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,16 @@ from app.models import AbstractConfiguration, AbstractResource
|
|||
|
||||
|
||||
class Onion(AbstractConfiguration):
|
||||
@property
|
||||
def brn(self) -> BRN:
|
||||
return BRN(
|
||||
group_id=self.group_id,
|
||||
product="eotk",
|
||||
provider="*",
|
||||
resource_type="onion",
|
||||
resource_id=self.onion_name
|
||||
)
|
||||
|
||||
group_id = db.Column(db.Integer(), db.ForeignKey("group.id"), nullable=False)
|
||||
domain_name = db.Column(db.String(255), nullable=False)
|
||||
onion_name = db.Column(db.String(56), nullable=False, unique=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue