Read a requested network identifier from common query params.
()
| 1846 | |
| 1847 | def _wt_seen_path(): |
| 1848 | return os.path.join(shared_data.datadir, 'watchtower_seen.json') |
| 1849 | |
| 1850 | |
| 1851 | def _wt_get(): |
| 1852 | """Lazily build the aggregator, seeding its display ring from the persisted |
| 1853 | file so the pane isn't blank right after a restart.""" |
| 1854 | global _watchtower |
| 1855 | if _watchtower is not None: |
| 1856 | return _watchtower |
| 1857 | import watchtower as _wtmod |
| 1858 | cfg = shared_data.config |
| 1859 | dirs = cfg.get('watchtower_dirs') or None |
| 1860 | try: |
| 1861 | maxa = int(cfg.get('watchtower_max_alerts', 500)) |
no test coverage detected