You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DKB only allows to get transactions up to three years in the past. If you want to get all your transactions and use e.g. 01.01.1970 as your date_from, setting the from and to fields does not work. The request will therefore return all transactions in the default timeframe (i.e. the last 30 days).
This unwanted effect could be mitigated by adding a feature to validate_dates that not only checks if the dates are not in the future, but also not more than three years in the past:
minimal_date_uts = int(time.mktime(datetime.date.today() - datetime.timedelta(days=3*365).timetuple()))
if date_from_uts < minimal_date_uts:
date_from = datetime.utcfromtimestamp(minimal_date_uts).strftime('%d.%m.%Y')
if date_to_uts < minimal_date_uts:
date_to = datetime.utcfromtimestamp(minimal_date_uts).strftime('%d.%m.%Y')
The text was updated successfully, but these errors were encountered:
DKB only allows to get transactions up to three years in the past. If you want to get all your transactions and use e.g.
01.01.1970
as yourdate_from
, setting the from and to fields does not work. The request will therefore return all transactions in the default timeframe (i.e. the last 30 days).This unwanted effect could be mitigated by adding a feature to
validate_dates
that not only checks if the dates are not in the future, but also not more than three years in the past:The text was updated successfully, but these errors were encountered: