|
|
|
@ -42,6 +42,8 @@ def get_visitors(request):
|
|
|
|
|
"ip": visitor.ip_address,
|
|
|
|
|
"flag": visitor.flag_image_url,
|
|
|
|
|
"is_online": visitor.is_online,
|
|
|
|
|
"duration": visitor.total_duration,
|
|
|
|
|
"last_log": VisitorLog.objects.filter(visitor=visitor).last().title
|
|
|
|
|
}
|
|
|
|
|
visitors_data.append(visitor_data)
|
|
|
|
|
|
|
|
|
|