06/03 Optimize codes, fix Schwab Account
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user