Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
silkaj
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
matograine
silkaj
Commits
2f290fa5
Commit
2f290fa5
authored
Jun 24, 2019
by
Moul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] #233: round passed amount and amoundUD floats × by 100
parent
2c0329ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
silkaj/tx.py
silkaj/tx.py
+2
-2
No files found.
silkaj/tx.py
View file @
2f290fa5
...
...
@@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources):
if
not
(
amount
or
amountUD
or
allSources
):
message_exit
(
"--amount nor --amountUD nor --allSources is set"
)
if
amount
:
return
amount
*
100
return
round
(
amount
*
100
)
if
amountUD
:
return
amountUD
*
await
UDValue
().
ud_value
return
round
(
amountUD
*
await
UDValue
().
ud_value
)
def
check_transaction_values
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment