Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tikka
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
clients
python
Tikka
Commits
b1269252
Commit
b1269252
authored
2 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] fix file import flag not set and bad type
parent
586b2cef
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tikka/adapters/repository/accounts.py
+2
-0
2 additions, 0 deletions
tikka/adapters/repository/accounts.py
tikka/slots/pyqt/windows/v1_file_import.py
+5
-1
5 additions, 1 deletion
tikka/slots/pyqt/windows/v1_file_import.py
with
7 additions
and
1 deletion
tikka/adapters/repository/accounts.py
+
2
−
0
View file @
b1269252
...
@@ -314,6 +314,8 @@ def get_account_from_row(row: tuple) -> Account:
...
@@ -314,6 +314,8 @@ def get_account_from_row(row: tuple) -> Account:
for
value
in
row
:
for
value
in
row
:
if
count
==
8
and
value
is
not
None
:
if
count
==
8
and
value
is
not
None
:
values
.
append
(
UUID
(
hex
=
value
))
values
.
append
(
UUID
(
hex
=
value
))
elif
count
==
7
:
values
.
append
(
bool
(
value
))
else
:
else
:
values
.
append
(
value
)
values
.
append
(
value
)
count
+=
1
count
+=
1
...
...
This diff is collapsed.
Click to expand it.
tikka/slots/pyqt/windows/v1_file_import.py
+
5
−
1
View file @
b1269252
...
@@ -195,9 +195,13 @@ class V1FileImportWindow(QDialog, Ui_V1FileImportDialog):
...
@@ -195,9 +195,13 @@ class V1FileImportWindow(QDialog, Ui_V1FileImportDialog):
name
=
self
.
nameLineEdit
.
text
().
strip
()
name
=
self
.
nameLineEdit
.
text
().
strip
()
password
=
self
.
passwordLineEdit
.
text
()
password
=
self
.
passwordLineEdit
.
text
()
self
.
application
.
accounts
.
create_new_root_account_v1_from_seed
(
account
=
self
.
application
.
accounts
.
create_new_root_account_v1_from_seed
(
self
.
v1_file_wallet
.
signing_key
.
seed
.
hex
(),
name
,
password
self
.
v1_file_wallet
.
signing_key
.
seed
.
hex
(),
name
,
password
)
)
if
account
is
not
None
:
# set account from file flag
account
.
file_import
=
True
self
.
application
.
accounts
.
update
(
account
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
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