Use f.multicall with parameters f.get_priority, f.get_completed_chunks, f.get_size_chunks (and torrents hash, of course).
Check file priority - if it 0, then this file is skipped. Else if get_completed_chunks==get_size_chunks then file completed. Else - incompleted.