From 95d91c5cfa39615d5059fbecb05d194d4fa3291f Mon Sep 17 00:00:00 2001
From: matograine <tom.ngr@zaclys.net>
Date: Mon, 26 Apr 2021 17:27:24 +0200
Subject: [PATCH] [mod] #344 comment tui.convert_time and remove strange
 imports

---
 silkaj/auth.py  | 3 +--
 silkaj/money.py | 1 -
 silkaj/tui.py   | 2 ++
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/silkaj/auth.py b/silkaj/auth.py
index 65f8496c..74b16f83 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 15f051aa..80a15468 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 2b09d00f..8d99094a 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)
+"""
-- 
GitLab