From 95826b4a3d56c2cf5fb804c42b5fb40f24a6743b Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 17 Apr 2024 00:48:21 +0200 Subject: [PATCH] Address has been made secret --- personal_data/fetchers/partisia_blockchain.py | 3 ++- personal_data/secrets.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/personal_data/fetchers/partisia_blockchain.py b/personal_data/fetchers/partisia_blockchain.py index 8fb5350..b43c948 100644 --- a/personal_data/fetchers/partisia_blockchain.py +++ b/personal_data/fetchers/partisia_blockchain.py @@ -11,6 +11,7 @@ import bs4 import personal_data.html_util import personal_data.parse_util from personal_data.data import DeduplicateMode, Scraper +from .. import secrets logger = logging.getLogger(__name__) @@ -54,7 +55,7 @@ class MpcBalance(Scraper): return json_data['coins']['coins'] def scrape(self): - address = '0019e9a28c978dd65114cc4e0bcb876770805b0349' # TODO + address = secrets.PBC_ACCOUNT_ADDRESS coins = self.determine_coins() headers = { diff --git a/personal_data/secrets.py b/personal_data/secrets.py index 6761f2d..c26f76b 100644 --- a/personal_data/secrets.py +++ b/personal_data/secrets.py @@ -27,8 +27,10 @@ CRUNCHYROLL_AUTH =load_secret('CRUNCHYROLL_AUTH') # FFXIV FFXIV_CHARACTER_ID = load_secret('FFXIV_CHARACTER_ID') +# Partisia Blockchain +PBC_ACCOUNT_ADDRESS = load_secret('PBC_ACCOUNT_ADDRESS') + # Email configuration MAILGUN_API_KEY = load_secret('MAILGUN_API_KEY') MAILGUN_DOMAIN = load_secret('MAILGUN_DOMAIN') MAILGUN_RECIPIENT = load_secret('MAILGUN_RECIPIENT') -