Generate HTML part in dry run mode (but don't write it to disk)

This commit is contained in:
Gregory Soutade 2024-02-15 10:55:04 +01:00
parent b9566beb80
commit 0464a3d8e7

View File

@ -605,11 +605,11 @@ class IWLA(object):
break break
def _generateDisplay(self): def _generateDisplay(self):
if self.args.dry_run or\ if self.args.disable_display: return
self.args.disable_display: return
self._generateDisplayDaysStats() self._generateDisplayDaysStats()
self._callPlugins(conf.DISPLAY_HOOK_DIRECTORY) self._callPlugins(conf.DISPLAY_HOOK_DIRECTORY)
self._generateDisplayWholeMonthStats() self._generateDisplayWholeMonthStats()
if self.args.dry_run: return
self.display.build(conf.DISPLAY_ROOT) self.display.build(conf.DISPLAY_ROOT)
self._compressFiles(conf.DISPLAY_ROOT) self._compressFiles(conf.DISPLAY_ROOT)