Simplify exporting data.
This commit is contained in:
parent
de7d923be8
commit
512bdefbca
@ -370,12 +370,12 @@ Settings =
|
|||||||
version: g.VERSION
|
version: g.VERSION
|
||||||
date: now
|
date: now
|
||||||
Conf: Conf
|
Conf: Conf
|
||||||
items = WatchedThreads: {}
|
data.Conf.WatchedThreads = {}
|
||||||
for db in DataBoards
|
for db in DataBoards
|
||||||
items[db] = boards: {}
|
data.Conf[db] = boards: {}
|
||||||
$.get items, (items) ->
|
# Make sure to export the most recent data.
|
||||||
for key, val of items
|
$.get data.Conf, (Conf) ->
|
||||||
data.Conf[key] = val
|
data.Conf = Conf
|
||||||
Settings.export now, data
|
Settings.export now, data
|
||||||
return
|
return
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user