@@ -1058,11 +1058,11 @@ (run-ids (if (and target run-name) (rmt:get-run-record-ids target run-name (rmt:get-keys)) (rmt:get-changed-record-run-ids last-sync-time))) (all-run-ids (if (and target run-name) '() (rmt:get-all-runids))) (changed-run-dbs (if (and target run-name) '() (db:get-changed-run-ids last-sync-time))) - (changed-run-ids (if (and target run-name) run-ids (filter (lambda (run) (member (modulo run 100) changed-run-dbs)) all-run-ids))) + (changed-run-ids (if (and target run-name) run-ids (filter (lambda (run) (member (modulo run (num-run-dbs)) changed-run-dbs)) all-run-ids))) (area-tag (if (args:get-arg "-area-tag") (args:get-arg "-area-tag") (if (args:get-arg "-area") (args:get-arg "-area") ""))))