mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
.
This commit is contained in:
parent
eb1118ed8b
commit
9ead6bc75e
1 changed files with 4 additions and 4 deletions
|
|
@ -99,12 +99,12 @@ class Labelbase(models.Model):
|
|||
return self.network == self.TESTNET
|
||||
|
||||
def get_mempool_api(self):
|
||||
base_endpoint = self.user.profile.mempool_endpoint.rstrip("/")
|
||||
if self.network != "mainnet":
|
||||
mempool_endpoint = f"{base_endpoint}/{self.network}"
|
||||
mempool_endpoint = \
|
||||
"{}/{}".format(self.user.profile.mempool_endpoint, self.network)
|
||||
else:
|
||||
mempool_endpoint = base_endpoint
|
||||
return MempoolAPI(api_base_url=f"{mempool_endpoint}/api")
|
||||
mempool_endpoint = self.user.profile.mempool_endpoint
|
||||
return MempoolAPI(api_base_url="{}{}".format(mempool_endpoint, "/api/"))
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse("labelbase", args=[self.id])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue