Skip to content

Commit

Permalink
Fix in date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Sep 5, 2018
1 parent 98ac44c commit ad41f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blacklist/views/api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def get_blacklist(page: int):
'thumbnail': url_for('api.index.get_thumbnail', blacklist_id=row.id, _external=True) if row.thumbnail else None,
'signed': last_pdf.signed,
'ssl': last_pdf.ssl,
'dns_date_published': row.dns_date_published.isoformat(),
'dns_date_published': row.dns_date_published.isoformat() if row.dns_date_published else None,
'dns_date_removed': row.dns_date_removed.isoformat() if row.dns_date_removed else None,
'bank_account_date_published': row.bank_account_date_published.isoformat(),
'bank_account_date_published': row.bank_account_date_published.isoformat() if row.bank_account_date_published else None,
'bank_account_date_removed': row.bank_account_date_removed.isoformat() if row.bank_account_date_removed else None,
'note': row.note,
'redirects_to': row.redirects_to,
Expand Down

0 comments on commit ad41f7d

Please sign in to comment.