File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lunchable/plugins/primelunch Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -327,8 +327,12 @@ def process_transactions(self, confirm: bool = True):
327327 transactions = amazon_transaction_df , amazon = amazon_df , time_range = 5
328328 )
329329 updated_transactions = self .df_to_transactions (df = merged_data )
330+ responses = []
330331 for item in updated_transactions :
331- self .update_transaction (transaction = item , confirm = confirm )
332+ resp = self .update_transaction (transaction = item , confirm = confirm )
333+ if resp is not None :
334+ responses .append (resp )
335+ logger .info ("%s LunchMoney transactions updated" , len (responses ))
332336
333337
334338@click .command ("run" )
@@ -353,6 +357,7 @@ def process_transactions(self, confirm: bool = True):
353357 "-a" ,
354358 "--all" ,
355359 "update_all" ,
360+ is_flag = True ,
356361 type = click .BOOL ,
357362 help = "Whether to skip the confirmation step and simply update all matched "
358363 "transactions" ,
You can’t perform that action at this time.
0 commit comments