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
eaada992
Commit
eaada992
authored
5 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] fix bug in tx history table_model.py conditions field update
Fix test
parent
f20cb71b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!778
Release 0.51.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/gui/navigation/txhistory/table_model.py
+1
-1
1 addition, 1 deletion
src/sakia/gui/navigation/txhistory/table_model.py
tests/functional/test_txhistory_controller.py
+5
-1
5 additions, 1 deletion
tests/functional/test_txhistory_controller.py
with
6 additions
and
2 deletions
src/sakia/gui/navigation/txhistory/table_model.py
+
1
−
1
View file @
eaada992
...
@@ -147,7 +147,7 @@ class HistoryTableModel(QAbstractTableModel):
...
@@ -147,7 +147,7 @@ class HistoryTableModel(QAbstractTableModel):
sources_conditions
=
[
sources_conditions
=
[
source
.
conditions
source
.
conditions
for
source
in
sources
for
source
in
sources
if
"
%
&&
%
"
in
source
.
conditions
or
"
%
||
%
"
in
source
.
conditions
if
"
&&
"
in
source
.
conditions
or
"
||
"
in
source
.
conditions
]
]
transfer
.
conditions
=
(
transfer
.
conditions
=
(
sources_conditions
[
0
]
if
len
(
sources_conditions
)
>
0
else
None
sources_conditions
[
0
]
if
len
(
sources_conditions
)
>
0
else
None
...
...
This diff is collapsed.
Click to expand it.
tests/functional/test_txhistory_controller.py
+
5
−
1
View file @
eaada992
...
@@ -65,9 +65,13 @@ async def test_tx_history_table_model(
...
@@ -65,9 +65,13 @@ async def test_tx_history_table_model(
history_table_model
.
change_transfer
(
transfers
[
0
])
history_table_model
.
change_transfer
(
transfers
[
0
])
assert
len
(
history_table_model
.
transfers_data
)
==
2
assert
len
(
history_table_model
.
transfers_data
)
==
2
conditions_data
=
history_table_model
.
transfers_data
[
1
][
conditions_data
=
history_table_model
.
transfers_data
[
0
][
HistoryTableModel
.
columns_types
.
index
(
"
conditions
"
)
HistoryTableModel
.
columns_types
.
index
(
"
conditions
"
)
]
]
if
conditions_data
is
None
:
conditions_data
=
history_table_model
.
transfers_data
[
1
][
HistoryTableModel
.
columns_types
.
index
(
"
conditions
"
)
]
assert
(
assert
(
conditions_data
conditions_data
==
"
SIG(F3HWkYnUSbdpEueosKqzYd1m8ftwojwE2uXR7ScoAVKo) || (SIG(GfFUvqaVSgCt6nFDQCAuULWk6K16MUDckeyBJQFcaYj7) && CSV(604800))
"
==
"
SIG(F3HWkYnUSbdpEueosKqzYd1m8ftwojwE2uXR7ScoAVKo) || (SIG(GfFUvqaVSgCt6nFDQCAuULWk6K16MUDckeyBJQFcaYj7) && CSV(604800))
"
...
...
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