06/03 Optimize codes, fix Schwab Account

This commit is contained in:
2026-06-03 13:45:16 -04:00
parent c18c936a11
commit 2735559ff5
4 changed files with 56 additions and 8 deletions
+3
View File
@@ -292,6 +292,9 @@ def sync_snapshot(schwab_account_id):
except Exception as e:
log.error('[schwab] sync_snapshot failed for id=%s: %s', schwab_account_id, e, exc_info=True)
flash(f'Snapshot sync failed: {e}', 'danger')
next_url = request.form.get('next', '')
if next_url and next_url.startswith('/'):
return redirect(next_url)
return redirect(url_for('schwab.index'))