コード例 #1
0
def _update_found_result(result: Result, found_result: Result):
    found_result.nr_found += 1

    not_empty = (result.cite_count != ResultConstants.NO_CITE_COUNT
                 and found_result.cite_count != ResultConstants.NO_CITE_COUNT)
    if not_empty:
        max_cite_count = max(_to_number(result.cite_count),
                             _to_number(found_result.cite_count))
        found_result.cite_count = str(max_cite_count)