im pretty sure the sqltags library is an outdated, so the enum probably is no good anymore or moved to a different location,
what version are you running?
Edit:
yup seems this should work instead now on newer version:
from com.inductiveautomation.ignition.common.model.values import QualityCode
res = system.tag.readBlocking(["[default]Components/oneShot"])
return QualityCode.Good == res[0].quality