back fill and relink print name using cloud if there is

This commit is contained in:
RNL
2026-03-29 23:08:31 +11:00
parent 9978b7027a
commit 34ef5d6973
5 changed files with 54 additions and 9 deletions

View File

@@ -112,8 +112,8 @@ class Command(BaseCommand):
serial_number=cloud_task.device_serial
).first()
if printer:
window_start = cloud_task.cloud_start_time - timedelta(minutes=2)
window_end = cloud_task.cloud_start_time + timedelta(minutes=2)
window_start = cloud_task.cloud_start_time - timedelta(minutes=5)
window_end = cloud_task.cloud_start_time + timedelta(minutes=5)
historical = PrintJob.objects.filter(
device=printer,
start_time__gte=window_start,