Debugging page importation.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-08-21 11:54:25 -05:00
parent a6e49448fa
commit ff9fbb92f9

View File

@ -61,11 +61,22 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree withRemote: externalDocLocati
(self hasBlockUID: snippet uid) (self hasBlockUID: snippet uid)
ifTrue: [ | existingPage | ifTrue: [ | existingPage |
existingPage := self pages existingPage := self pages
detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] ifNone: [ ^ snippet ]. detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ]
ifFound: [
self importErrorForLocal: existingPage withRemote: externalDocLocation. self importErrorForLocal: existingPage withRemote: externalDocLocation.
^ self ] ^ self
ifFalse: [ snippet database: self. ]
self registerSnippet: snippet ] ]. ifNone: [
snippet database: self.
self registerSnippet: snippet
].
]
ifFalse: [
snippet database: self.
self registerSnippet: snippet
]
].
self addPage: page. self addPage: page.
^ page ^ page
] ]