Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
95d91c5c
Commit
95d91c5c
authored
4 years ago
by
matograine
Browse files
Options
Downloads
Patches
Plain Diff
[mod]
#344
comment tui.convert_time and remove strange imports
parent
047a313b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
silkaj/auth.py
+1
-2
1 addition, 2 deletions
silkaj/auth.py
silkaj/money.py
+0
-1
0 additions, 1 deletion
silkaj/money.py
silkaj/tui.py
+2
-0
2 additions, 0 deletions
silkaj/tui.py
with
3 additions
and
3 deletions
silkaj/auth.py
+
1
−
2
View file @
95d91c5c
...
@@ -23,8 +23,7 @@ from pathlib import Path
...
@@ -23,8 +23,7 @@ from pathlib import Path
from
duniterpy.key
import
SigningKey
from
duniterpy.key
import
SigningKey
from
duniterpy.key.scrypt_params
import
ScryptParams
from
duniterpy.key.scrypt_params
import
ScryptParams
# had to import display_pubkey_and_checksum from wot to avoid loop dependency.
from
silkaj.tui
import
display_pubkey_and_checksum
from
silkaj.wot
import
display_pubkey_and_checksum
from
silkaj.tools
import
message_exit
from
silkaj.tools
import
message_exit
from
silkaj.constants
import
PUBKEY_PATTERN
from
silkaj.constants
import
PUBKEY_PATTERN
...
...
This diff is collapsed.
Click to expand it.
silkaj/money.py
+
0
−
1
View file @
95d91c5c
...
@@ -23,7 +23,6 @@ from silkaj.blockchain_tools import HeadBlock
...
@@ -23,7 +23,6 @@ from silkaj.blockchain_tools import HeadBlock
from
silkaj.tools
import
CurrencySymbol
,
message_exit
,
coroutine
from
silkaj.tools
import
CurrencySymbol
,
message_exit
,
coroutine
from
silkaj.auth
import
auth_method
,
has_auth_method
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
import
wot
from
silkaj.crypto_tools
import
(
from
silkaj.crypto_tools
import
(
is_pubkey_and_check
,
is_pubkey_and_check
,
...
...
This diff is collapsed.
Click to expand it.
silkaj/tui.py
+
2
−
0
View file @
95d91c5c
...
@@ -69,6 +69,7 @@ async def send_doc_confirmation(document_name):
...
@@ -69,6 +69,7 @@ async def send_doc_confirmation(document_name):
sys
.
exit
(
constants
.
SUCCESS_EXIT_STATUS
)
sys
.
exit
(
constants
.
SUCCESS_EXIT_STATUS
)
"""
def convert_time(timestamp, kind):
def convert_time(timestamp, kind):
ts = int(timestamp)
ts = int(timestamp)
date =
"
%Y-%m-%d
"
date =
"
%Y-%m-%d
"
...
@@ -83,3 +84,4 @@ def convert_time(timestamp, kind):
...
@@ -83,3 +84,4 @@ def convert_time(timestamp, kind):
if ts >= 3600:
if ts >= 3600:
pattern += second
pattern += second
return datetime.fromtimestamp(ts).strftime(pattern)
return datetime.fromtimestamp(ts).strftime(pattern)
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment