train_scraper.c: fix requery logic