"""
GLAMWalk -- Volume 3: Data at Scale
10_tate_dual_filter.py

Tate's conservative dual-filter: a blank rights-adjacent field AND a pre-1930 date, both required together.

Source: Volume Three, Chapter 7 -- Tate: The Dual-Filter Institution
Targets Python 3.11.4 -- see Volume One, Chapter 1.5/1.6.
"""

def tate_qualifies(record):
    if record.get("thumbnailCopyright"):   # non-blank means a claim exists
        return False
    year = record.get("year")
    if not year or int(year) >= 1930:
        return False
    return True
