File tree 1 file changed +4
-4
lines changed
pynonymizer/database/mysql
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def __seed(self, qualifier_map):
60
60
"""
61
61
'Seed' the database with a bunch of pre-generated random records so updates can be performed in batch updates
62
62
"""
63
- for i in progress (
63
+ for i in self . progress (
64
64
range (0 , self .seed_rows ), desc = "Inserting seed data" , unit = "rows"
65
65
):
66
66
self .logger .debug (f"Inserting seed row { i } " )
@@ -123,7 +123,7 @@ def anonymize_database(self, database_strategy):
123
123
124
124
anonymization_errors = []
125
125
126
- with progress (
126
+ with self . progress (
127
127
desc = "Anonymizing database" , total = len (table_strategies )
128
128
) as progressbar :
129
129
for table_strategy in table_strategies :
@@ -197,7 +197,7 @@ def restore_database(self, input_path):
197
197
try :
198
198
batch_processor = self .__runner .open_batch_processor ()
199
199
with input_obj .open () as dumpfile_data :
200
- with progress (
200
+ with self . progress (
201
201
desc = "Restoring" ,
202
202
total = dumpsize ,
203
203
unit = "B" ,
@@ -222,7 +222,7 @@ def dump_database(self, output_path):
222
222
223
223
dump_process = self .__dumper .open_dumper ()
224
224
with output_obj .open () as output_file :
225
- with progress (
225
+ with self . progress (
226
226
desc = "Dumping" ,
227
227
total = dumpsize_estimate ,
228
228
unit = "B" ,
You can’t perform that action at this time.
0 commit comments