mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-11 18:50:59 +08:00
更新 storage.py
This commit is contained in:
@@ -212,13 +212,7 @@ def transtype(name: str, _: User = Depends(get_current_active_superuser)) -> Any
|
|||||||
"""
|
"""
|
||||||
查询支持的整理方式
|
查询支持的整理方式
|
||||||
"""
|
"""
|
||||||
ret = {}
|
ret = StorageChain().support_transtype(name)
|
||||||
try:
|
if ret:
|
||||||
ret = StorageChain().support_transtype(name)
|
return schemas.StorageTransType(transtype=ret)
|
||||||
if ret:
|
return schemas.StorageTransType()
|
||||||
return schemas.StorageTransType(transtype=ret)
|
|
||||||
return schemas.StorageTransType()
|
|
||||||
except Exception as e:
|
|
||||||
pass
|
|
||||||
finally:
|
|
||||||
print(schemas.StorageTransType(transtype=ret if ret else []))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user