feat:优先下载排序逻辑,更加精细化

This commit is contained in:
jxxghp
2024-10-16 15:30:58 +08:00
parent 4455ac13e9
commit 54666cb757
3 changed files with 68 additions and 51 deletions

View File

@@ -0,0 +1,27 @@
"""2.0.4
Revision ID: a73f2dbf5c09
Revises: e2dbe1421fa4
Create Date: 2024-10-16 15:05:01.775429
"""
from app.db.systemconfig_oper import SystemConfigOper
from app.schemas.types import SystemConfigKey
# revision identifiers, used by Alembic.
revision = 'a73f2dbf5c09'
down_revision = 'e2dbe1421fa4'
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
# 初始化下载优先规则
SystemConfigOper().set(SystemConfigKey.TorrentsPriority, ["torrent", "upload", "seeder"])
# ### end Alembic commands ###
def downgrade() -> None:
pass