17 lines
502 B
Python
17 lines
502 B
Python
|
|
PRIORITY_BOUNTY = 0
|
||
|
|
PRIORITY_PROMOTE = 10
|
||
|
|
PRIORITY_OTHERS_DOWNLOADED = 20
|
||
|
|
PRIORITY_SELF_DOWNLOAD = 30
|
||
|
|
PRIORITY_LOW_CONFIDENCE = 90
|
||
|
|
|
||
|
|
ORIGIN_TO_PRIORITY = {
|
||
|
|
"manual_bounty": PRIORITY_BOUNTY,
|
||
|
|
"bounty": PRIORITY_BOUNTY,
|
||
|
|
"manual_promote": PRIORITY_PROMOTE,
|
||
|
|
"promote": PRIORITY_PROMOTE,
|
||
|
|
"manual_downloaded_by_others": PRIORITY_OTHERS_DOWNLOADED,
|
||
|
|
"downloaded_by_others": PRIORITY_OTHERS_DOWNLOADED,
|
||
|
|
"hf_seed": PRIORITY_SELF_DOWNLOAD,
|
||
|
|
"self_download": PRIORITY_SELF_DOWNLOAD,
|
||
|
|
}
|