Skip to content

Commit 9dc9101

Browse files
committed
🐛 PrimeLunch All Flag
1 parent 88b25d9 commit 9dc9101

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lunchable/plugins/primelunch/primelunch.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)