Skip to content

Commit

Permalink
Remove duplicated functions in backend/globaleaks/utils/templating.py
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 18, 2025
1 parent 4373b5a commit 7f823c4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions backend/globaleaks/utils/templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,6 @@ def TorSite(self):
def HTTPSSite(self):
return 'https://' + self.data['signup']['subdomain'] + '.' + self.data['node']['rootdomain']

def Site(self):
if self.data['node']['hostname']:
return self.HTTPSSite()

elif self.data['node']['onionservice']:
return self.TorSite()

return ''

def RecipientName(self):
return self.data['signup']['name'] + ' ' + self.data['signup']['surname']

Expand All @@ -531,9 +522,6 @@ def ActivationUrl(self):

return site + '/#/activation?token=' + self.data['signup']['activation_token']

def LoginUrl(self):
return self.Site() + '/#/login'

def ExpirationDate(self):
date = self.data['signup']['registration_date'] + timedelta(30)
return datetime_to_pretty_str(date)
Expand Down

0 comments on commit 7f823c4

Please sign in to comment.