Fix duplicates in views

This commit is contained in:
angelblue05 2018-09-13 01:44:39 -05:00
parent 2677f98012
commit f37fd7c983
3 changed files with 6 additions and 6 deletions

View file

@ -246,10 +246,10 @@ def get_sync():
except Exception:
sync = {}
sync['Libraries'] = sync.get('Libraries', [])
sync['Libraries'] = list(set(sync.get('Libraries', [])))
sync['RestorePoint'] = sync.get('RestorePoint', {})
sync['Whitelist'] = sync.get('Whitelist', [])
sync['SortedViews'] = sync.get('SortedViews', [])
sync['Whitelist'] = list(set(sync.get('Whitelist', [])))
sync['SortedViews'] = list(set(sync.get('SortedViews', [])))
return sync