simply numedits logic
simply numedits logic

This streamlines the check for number_of_edits so there are fewer
if/else statements. It also immediately terminates the loop once the
maximum number of edits has been reached. Before, the full loop would
still run and  check every item even though no updates would be made.

CommerceDataService/census-wikidata-bot