Spaces:
Sleeping
Sleeping
new ch
Browse files- routers/gemini.py +1 -0
- templates/index.html +4 -2
routers/gemini.py
CHANGED
|
@@ -297,6 +297,7 @@ async def get_jobs(
|
|
| 297 |
"status": job.status,
|
| 298 |
"created_at": job.created_at.isoformat() if job.created_at else None,
|
| 299 |
"completed_at": job.completed_at.isoformat() if job.completed_at else None,
|
|
|
|
| 300 |
}
|
| 301 |
|
| 302 |
# Include prompt for video jobs
|
|
|
|
| 297 |
"status": job.status,
|
| 298 |
"created_at": job.created_at.isoformat() if job.created_at else None,
|
| 299 |
"completed_at": job.completed_at.isoformat() if job.completed_at else None,
|
| 300 |
+
# "api_response": job.api_response,
|
| 301 |
}
|
| 302 |
|
| 303 |
# Include prompt for video jobs
|
templates/index.html
CHANGED
|
@@ -439,6 +439,7 @@
|
|
| 439 |
<th>User ID</th>
|
| 440 |
<th>Type</th>
|
| 441 |
<th>Status</th>
|
|
|
|
| 442 |
<th>Error</th>
|
| 443 |
<th>Created At</th>
|
| 444 |
<th>Completed At</th>
|
|
@@ -641,7 +642,7 @@
|
|
| 641 |
<td class="user-id">${item.user_id || '-'}</td>
|
| 642 |
<td class="user-id">${item.client_user_id || '-'}</td>
|
| 643 |
<td>${item.action}</td>
|
| 644 |
-
<td
|
| 645 |
<td>${item.ip_address || '-'}</td>
|
| 646 |
<td class="truncate" title="${item.user_agent || ''}">${item.user_agent || '-'}</td>
|
| 647 |
<td class="truncate" title="${item.refer_url || ''}">${item.refer_url || '-'}</td>
|
|
@@ -666,7 +667,7 @@
|
|
| 666 |
<td>${item.ipv4_address || '-'}</td>
|
| 667 |
<td>${item.ipv6_address || '-'}</td>
|
| 668 |
<td class="truncate" title="${item.device_fingerprint || ''}">${item.device_fingerprint || '-'}</td>
|
| 669 |
-
<td
|
| 670 |
<td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
|
| 671 |
<td class="timestamp">${item.last_seen_at ? new Date(item.last_seen_at).toLocaleString() : '-'}</td>
|
| 672 |
</tr>
|
|
@@ -710,6 +711,7 @@
|
|
| 710 |
<td class="user-id">${item.user_id}</td>
|
| 711 |
<td>${item.job_type}</td>
|
| 712 |
<td><span class="status-badge status-${item.status}">${item.status}</span></td>
|
|
|
|
| 713 |
<td class="truncate" title="${item.error_message || ''}">${item.error_message || '-'}</td>
|
| 714 |
<td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
|
| 715 |
<td class="timestamp">${item.completed_at ? new Date(item.completed_at).toLocaleString() : '-'}</td>
|
|
|
|
| 439 |
<th>User ID</th>
|
| 440 |
<th>Type</th>
|
| 441 |
<th>Status</th>
|
| 442 |
+
<th>API Response</th>
|
| 443 |
<th>Error</th>
|
| 444 |
<th>Created At</th>
|
| 445 |
<th>Completed At</th>
|
|
|
|
| 642 |
<td class="user-id">${item.user_id || '-'}</td>
|
| 643 |
<td class="user-id">${item.client_user_id || '-'}</td>
|
| 644 |
<td>${item.action}</td>
|
| 645 |
+
<td class="truncate" title="${item.details || ''}">${item.details || '-'}</td>
|
| 646 |
<td>${item.ip_address || '-'}</td>
|
| 647 |
<td class="truncate" title="${item.user_agent || ''}">${item.user_agent || '-'}</td>
|
| 648 |
<td class="truncate" title="${item.refer_url || ''}">${item.refer_url || '-'}</td>
|
|
|
|
| 667 |
<td>${item.ipv4_address || '-'}</td>
|
| 668 |
<td>${item.ipv6_address || '-'}</td>
|
| 669 |
<td class="truncate" title="${item.device_fingerprint || ''}">${item.device_fingerprint || '-'}</td>
|
| 670 |
+
<td class="truncate" title="${JSON.stringify(item.device_info, null, 2)}">${JSON.stringify(item.device_info, null, 2) || '-'}</td>
|
| 671 |
<td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
|
| 672 |
<td class="timestamp">${item.last_seen_at ? new Date(item.last_seen_at).toLocaleString() : '-'}</td>
|
| 673 |
</tr>
|
|
|
|
| 711 |
<td class="user-id">${item.user_id}</td>
|
| 712 |
<td>${item.job_type}</td>
|
| 713 |
<td><span class="status-badge status-${item.status}">${item.status}</span></td>
|
| 714 |
+
<td class="truncate" title="${item.api_response || ''}">${item.api_response || '-'}</td>
|
| 715 |
<td class="truncate" title="${item.error_message || ''}">${item.error_message || '-'}</td>
|
| 716 |
<td class="timestamp">${item.created_at ? new Date(item.created_at).toLocaleString() : '-'}</td>
|
| 717 |
<td class="timestamp">${item.completed_at ? new Date(item.completed_at).toLocaleString() : '-'}</td>
|