first test id from post

This commit is contained in:
Valentin CZERYBA 2023-07-15 14:00:23 +02:00
parent 82f9acd658
commit aa8ac9cfcb

View File

@ -153,6 +153,8 @@ class WPMenu:
self._logger.info("{0} link {1} title {2}".format(self._name, link, title)) self._logger.info("{0} link {1} title {2}".format(self._name, link, title))
if link == "index.html": if link == "index.html":
idMenu = self._getId(title) idMenu = self._getId(title)
else:
idMenu = self._getIdFromPost(href)
return idMenu return idMenu