♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
1698ed8412
commit
c029847ffd
10 files changed
+23
-23
No files matched your search
@@ -51,9 +51,9 @@ Assert.is_nil(Mapper.shelfWorks(works, groups, { "1", "missing" }))
|
||||
Assert.is_nil(Mapper.shelfIds({ worksIds = { "1", false } }))
|
||||
|
||||
local BookDB = require("book.books_db")
|
||||
Assert.is_true(BookDB.upsertRemote({ source_id = "ext.douban", stable_id = "2", title = "乙", category = "旧题材" }))
|
||||
Assert.is_true(BookDB.upsertRemote({ source_id = "douban", stable_id = "2", title = "乙", category = "旧题材" }))
|
||||
Assert.is_true(BookDB.upsertRemote(Mapper.shelfWorks(works, groups)[2]))
|
||||
Assert.is_nil(BookDB.get("ext.douban", "2").category)
|
||||
Assert.is_nil(BookDB.get("douban", "2").category)
|
||||
|
||||
local requests, deferred, defer_works = {}, false, false
|
||||
local folder_wire, folder_error = { folderIds = { 10, 20 } }, nil
|
||||
|
||||
Reference in new issue
Block a user