diff --git a/silkaj/auth.py b/silkaj/auth.py index 65f8496c440adfed7e9d6682246c8b1a02cedecd..74b16f83063d47d436a975d6983b7387583f251b 100644 --- a/silkaj/auth.py +++ b/silkaj/auth.py @@ -23,8 +23,7 @@ from pathlib import Path from duniterpy.key import SigningKey from duniterpy.key.scrypt_params import ScryptParams -# had to import display_pubkey_and_checksum from wot to avoid loop dependency. -from silkaj.wot import display_pubkey_and_checksum +from silkaj.tui import display_pubkey_and_checksum from silkaj.tools import message_exit from silkaj.constants import PUBKEY_PATTERN diff --git a/silkaj/money.py b/silkaj/money.py index 15f051aa265d51ea41436614fee85781facf0dc2..80a15468a9547d5ca2444bbcdc39863dd2e28988 100644 --- a/silkaj/money.py +++ b/silkaj/money.py @@ -23,7 +23,6 @@ from silkaj.blockchain_tools import HeadBlock from silkaj.tools import CurrencySymbol, message_exit, coroutine from silkaj.auth import auth_method, has_auth_method -# had to import wot to prevent loop dependency. No use here. from silkaj import wot from silkaj.crypto_tools import ( is_pubkey_and_check, diff --git a/silkaj/tui.py b/silkaj/tui.py index 2b09d00f7261902c4598d22b87253b86863f99a6..8d99094a0501d4efb0bf8ea002fa231abc4f7c74 100644 --- a/silkaj/tui.py +++ b/silkaj/tui.py @@ -69,6 +69,7 @@ async def send_doc_confirmation(document_name): sys.exit(constants.SUCCESS_EXIT_STATUS) +""" def convert_time(timestamp, kind): ts = int(timestamp) date = "%Y-%m-%d" @@ -83,3 +84,4 @@ def convert_time(timestamp, kind): if ts >= 3600: pattern += second return datetime.fromtimestamp(ts).strftime(pattern) +"""