Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Store transactions by default
· fc29147c
ynerant
authored
Jul 27, 2020
fc29147c
Hide whitespace changes
Inline
Side-by-side
management/commands/import_transaction.py
View file @
fc29147c
...
...
@@ -67,8 +67,8 @@ class Command(ImportCommand):
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'
-b
'
,
'
--buttons
'
,
action
=
'
store_true
'
,
help
=
"
import buttons
"
)
parser
.
add_argument
(
'
-t
'
,
'
--transactions
'
,
action
=
'
store
'
,
default
=
0
,
help
=
"
start id for transaction import
"
)
parser
.
add_argument
(
'
-n
'
,
'
--nosave
'
,
action
=
'
store_true
'
,
default
=
Tru
e
,
help
=
"
Scan only transactions,
"
"
don
'
t save them
"
)
parser
.
add_argument
(
'
-n
'
,
'
--nosave
'
,
action
=
'
store_true
'
,
default
=
Fals
e
,
help
=
"
Scan only transactions,
"
"
don
'
t save them
"
)
@timed
def
import_buttons
(
self
,
cur
,
chunk_size
,
import_buttons
):
...
...