tkp.db.quality – Routines handling the ‘rejectreason’ table.

check image quality

class tkp.db.quality.RejectReason(id, desc)
desc

Alias for field number 1

id

Alias for field number 0

tkp.db.quality.isrejected(imageid)[source]

Find out if an image is rejected or not :param imageid: The image ID of the image to reject :returns: False if not rejected, a list of reason id’s if rejected

tkp.db.quality.reject(imageid, reason, comment)[source]

Add a reject intro to the db for a given image :param imageid: The image ID of the image to reject :param reason: why is the image rejected, a defined in ‘reason’ :param comment: an optional comment with details about the reason

tkp.db.quality.unreject(imageid)[source]

Remove all rejection of a given imageid :param imageid: The image ID of the image to reject