From 5c735f226fb23500e782724749f244d4ebd26826 Mon Sep 17 00:00:00 2001 From: rustyinfinity <115462641+rustyinfinity@users.noreply.github.com> Date: Mon, 23 Feb 2026 02:56:37 +0530 Subject: [PATCH] fix: loop not running problem --- plugins/TPDBMarkers/tpdbMarkers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/TPDBMarkers/tpdbMarkers.py b/plugins/TPDBMarkers/tpdbMarkers.py index d9e688d5..3ca347ed 100644 --- a/plugins/TPDBMarkers/tpdbMarkers.py +++ b/plugins/TPDBMarkers/tpdbMarkers.py @@ -5,6 +5,7 @@ import requests import json import time +import math per_page = 100 @@ -99,7 +100,7 @@ def processAll(): )[0] log.info(str(count) + " scenes to submit.") i = 0 - for r in range(1, int(count / per_page) + 1): + for r in range(1, math.ceil(count / per_page) + 1): log.info( "fetching data: %s - %s %0.1f%%" % (