Skip to content
Snippets Groups Projects
Commit 772fa34e authored by poka's avatar poka
Browse files

add custom addresses_switches.json

parent e1329f09
Branches
Tags
No related merge requests found
{
"poka": "5CQ8T4qpbYJq7uVsxGPQ5q2df7x3Wa4aRY6HUWMBYjfLZhnn",
"tuxmain": "5D2DnScFpxoEUXDwZbJH18tRsQMygBSh1F6YCcWvTYzKY2W7",
"elois": "5CtmAELWQ6FGDrAfsfVbGe4CXW4YrpNRTVU27eWzSE6J8ocU",
"1000i100": "5CCrBS67BrpBx3ihGHc72HZp3eHHbETxWFuNfwbbdoGSJFN8",
"HugoTrentesaux": "5Dq8xjvkmbz7q4g2LbZgyExD26VSCutfEc6n4W4AfQeVHZqz",
"ManuTopik": "5DUjwHRqPayt3tAZk1fqEgU99xZB9jzBHKy2sMSTNcc7m9D1"
}
{"ChristCosmic": {
{
"ChristCosmic": {
"certs": [
[
"poka",
......
......@@ -32,6 +32,9 @@ def get_identities_and_wallets(start_timestamp):
# Get Dex idty data
idty_data = load_json_url('idty.json')
# Get identities switches
addresses_switches = load_json('custom/addresses_switches.json')
# Get identities names by pubkey
identity_names = {}
for l in idty_data:
......@@ -87,6 +90,10 @@ def get_identities_and_wallets(start_timestamp):
r_balance = 0
else:
r_balance = wallets[r_address]
# Switch address to custom if exist
if r_username in addresses_switches: r_address = addresses_switches[r_username]
identities[r_username].update({'balance': r_balance})
identities[r_username].update({'pubkey': r_address})
......@@ -118,6 +125,8 @@ def get_identities_and_wallets(start_timestamp):
del identities[profile_check]['certs'][a]
a=a+1
# Add simple wallets
final_wallets = {}
for wallet in wallets:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment