Remove archive argument from readComponent

This commit is contained in:
2021-09-30 15:03:30 -06:00
parent 602d7501da
commit 4804b121d0
4 changed files with 10 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
(defNew []
(super
->[archive e] (hasComponent e Name)
->[archive e] (let [name (readComponent archive e Name)]
->[archive e] (let [name (readComponent e Name)]
(if (entriesByName.exists (name.toLowerCase))
(.push (dictGet entriesByName (name.toLowerCase)) e)
(dictSet entriesByName (name.toLowerCase) [e]))

View File

@@ -10,7 +10,7 @@
// named method in case a user will want to run it on selectedEntries instead of on media entries
(method scrapeForImages [archive e]
(let [:String title
(readComponent archive e Name)
(readComponent e Name)
:Array<String> wikipediaImageUrls
(queryImageUrls (queryImageTitles [title]))]
(addFiles archive e