Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
9ca44b6f
Commit
9ca44b6f
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue
#491
- display block hash of identity publication
The block hash is now displayed in the identity tab.
parent
7921e394
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sakia/models/identities.py
+6
-4
6 additions, 4 deletions
src/sakia/models/identities.py
with
6 additions
and
4 deletions
src/sakia/models/identities.py
+
6
−
4
View file @
9ca44b6f
...
@@ -117,9 +117,9 @@ class IdentitiesTableModel(QAbstractTableModel):
...
@@ -117,9 +117,9 @@ class IdentitiesTableModel(QAbstractTableModel):
'
pubkey
'
:
lambda
:
self
.
tr
(
'
Pubkey
'
),
'
pubkey
'
:
lambda
:
self
.
tr
(
'
Pubkey
'
),
'
renewed
'
:
lambda
:
self
.
tr
(
'
Renewed
'
),
'
renewed
'
:
lambda
:
self
.
tr
(
'
Renewed
'
),
'
expiration
'
:
lambda
:
self
.
tr
(
'
Expiration
'
),
'
expiration
'
:
lambda
:
self
.
tr
(
'
Expiration
'
),
'
publication
'
:
lambda
:
self
.
tr
(
'
Publication
'
),
'
publication
'
:
lambda
:
self
.
tr
(
'
Publication
Date
'
),
'
validation
'
:
lambda
:
self
.
tr
(
'
Va
li
d
ation
'
),}
'
block
'
:
lambda
:
self
.
tr
(
'
Pub
li
c
ation
Block
'
),}
self
.
columns_ids
=
(
'
uid
'
,
'
pubkey
'
,
'
renewed
'
,
'
expiration
'
,
'
publication
'
)
self
.
columns_ids
=
(
'
uid
'
,
'
pubkey
'
,
'
renewed
'
,
'
expiration
'
,
'
publication
'
,
'
block
'
)
self
.
identities_data
=
[]
self
.
identities_data
=
[]
self
.
_sig_validity
=
0
self
.
_sig_validity
=
0
...
@@ -155,10 +155,12 @@ class IdentitiesTableModel(QAbstractTableModel):
...
@@ -155,10 +155,12 @@ class IdentitiesTableModel(QAbstractTableModel):
if
identity
.
sigdate
:
if
identity
.
sigdate
:
sigdate_ts
=
await
self
.
community
.
time
(
identity
.
sigdate
.
number
)
sigdate_ts
=
await
self
.
community
.
time
(
identity
.
sigdate
.
number
)
sigdate_block
=
identity
.
sigdate
.
sha_hash
[:
7
]
else
:
else
:
sigdate_ts
=
None
sigdate_ts
=
None
sigdate_block
=
None
return
identity
.
uid
,
identity
.
pubkey
,
join_date
,
expiration_date
,
sigdate_ts
return
identity
.
uid
,
identity
.
pubkey
,
join_date
,
expiration_date
,
sigdate_ts
,
sigdate_block
async
def
refresh_identities
(
self
,
identities
):
async
def
refresh_identities
(
self
,
identities
):
"""
"""
...
...
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