diff --git a/leggen/commands/sync.py b/leggen/commands/sync.py index 09d2415..bb22970 100644 --- a/leggen/commands/sync.py +++ b/leggen/commands/sync.py @@ -27,7 +27,7 @@ def sync(ctx: click.Context): if account_status != "LINKED": created_at = datetime.datetime.fromisoformat(r["created"]) now = datetime.datetime.now(tz=datetime.timezone.utc) - days_left = 90 - (created_at - now).days + days_left = 90 - (now - created_at).days if days_left <= 15: n = { "bank": r["institution_id"],