mirror of
https://github.com/FujiwaraChoki/MoneyPrinterV2.git
synced 2026-04-26 06:35:51 +03:00
[PR #128] [MERGED] Fix remove_account() missing provider parameter #125
Labels
No labels
bug
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/MoneyPrinterV2#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/FujiwaraChoki/MoneyPrinterV2/pull/128
Author: @FujiwaraChoki
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @FujiwaraChoki
Base:
main← Head:fix/remove-account-missing-provider📝 Commits (2)
8b9f0b0Fix remove_account() missing provider parameter and hardcoded cache pathd5a4605Add CLI account deletion flow and provider-safe cache handling📊 Changes
2 files changed (+86 additions, -32 deletions)
View changed files
📝
src/cache.py(+38 -30)📝
src/main.py(+48 -2)📄 Description
Summary
remove_account()calledget_accounts()without the requiredproviderparameter, causing an immediateTypeErroron any call.get_twitter_cache_path(), so removing a YouTube account would have written to the Twitter cache file instead — corrupting it.providerparameter and cache path branching to match the pattern already used byadd_account().Test plan
remove_account("twitter", account_id)— verify the account is removed from the Twitter cacheremove_account("youtube", account_id)— verify the account is removed from the YouTube cache🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.