print data source annotations only once per source

pull/81/head
Hartmut Holzgraefe 2022-12-11 01:51:35 +00:00
rodzic 1f8b8e827d
commit 994d77042f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -518,9 +518,9 @@ class Renderer:
elif overlay.name != '':
annotations['styles'].append(overlay.dname)
if overlay.datasource != '':
annotations['sources'].append(overlay.datasource)
if overlay.datasource not in annotations['sources']:
annotations['sources'].append(overlay.datasource)
# TODO: remove duplicate data source
return annotations