Skip to content
Snippets Groups Projects
Commit ecd9484d authored by Moul's avatar Moul
Browse files

[mod] #155: remove `clear` calls which are not availabre on non-Unix

parent 069f4528
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,6 @@ def currency_info(): ...@@ -33,7 +33,6 @@ def currency_info():
] ]
head_block = HeadBlock().head_block head_block = HeadBlock().head_block
ep = EndPoint().ep ep = EndPoint().ep
system("clear")
print( print(
"Connected to node:", "Connected to node:",
ep[best_node(ep, False)], ep[best_node(ep, False)],
...@@ -210,7 +209,6 @@ def network_info(discover): ...@@ -210,7 +209,6 @@ def network_info(discover):
else: else:
endpoints[i]["ip6"] = endpoints[i]["ip6"][:8] + "" endpoints[i]["ip6"] = endpoints[i]["ip6"][:8] + ""
i += 1 i += 1
system("clear")
print( print(
len(endpoints), len(endpoints),
"peers ups, with", "peers ups, with",
...@@ -254,7 +252,6 @@ def list_issuers(nbr, last): ...@@ -254,7 +252,6 @@ def list_issuers(nbr, last):
): ):
issuer2["uid"] = uid issuer2["uid"] = uid
issuer2.pop("pubkey") issuer2.pop("pubkey")
system("clear")
print( print(
"Issuers for last {0} blocks from block n°{1} to block n°{2}".format( "Issuers for last {0} blocks from block n°{1} to block n°{2}".format(
nbr, current_nbr - nbr + 1, current_nbr nbr, current_nbr - nbr + 1, current_nbr
......
from os import system
from time import time from time import time
from tabulate import tabulate from tabulate import tabulate
from collections import OrderedDict from collections import OrderedDict
...@@ -33,7 +32,6 @@ def received_sent_certifications(id): ...@@ -33,7 +32,6 @@ def received_sent_certifications(id):
time_first_block = get_request("blockchain/block/1")["time"] time_first_block = get_request("blockchain/block/1")["time"]
id_certs = get_informations_for_identity(id) id_certs = get_informations_for_identity(id)
certifications = OrderedDict() certifications = OrderedDict()
system("clear")
params = BlockchainParams().params params = BlockchainParams().params
for certs in id_certs["uids"]: for certs in id_certs["uids"]:
if certs["uid"].lower() == id.lower(): if certs["uid"].lower() == id.lower():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment