tkp.db.quality
– Routines handling the ‘rejectreason’ table.¶
check image quality
-
class
tkp.db.quality.
RejectReason
(id, desc)¶ -
__getnewargs__
()¶ Return self as a plain tuple. Used by copy and pickle.
-
__getstate__
()¶ Exclude the OrderedDict from pickling
-
__repr__
()¶ Return a nicely formatted representation string
-
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