GitHub Actions commited on
Commit
e494df6
·
1 Parent(s): 43acb84

Sync from GitHub repo

Browse files
Files changed (1) hide show
  1. admin.py +1 -1
admin.py CHANGED
@@ -565,7 +565,7 @@ def analytics():
565
  analytics_stats['recent_votes'] = [
566
  {
567
  'id': vote.id,
568
- 'vote_date': vote.vote_date,
569
  'duration': round(vote.session_duration_seconds, 2) if vote.session_duration_seconds else None,
570
  'ip': vote.ip_address_partial,
571
  'cache_hit': vote.cache_hit,
 
565
  analytics_stats['recent_votes'] = [
566
  {
567
  'id': vote.id,
568
+ 'vote_date': vote.vote_date if isinstance(vote.vote_date, datetime) else datetime.fromisoformat(str(vote.vote_date).replace('Z', '+00:00')) if vote.vote_date else None,
569
  'duration': round(vote.session_duration_seconds, 2) if vote.session_duration_seconds else None,
570
  'ip': vote.ip_address_partial,
571
  'cache_hit': vote.cache_hit,