astyle
This commit is contained in:
@ -196,7 +196,7 @@ module.exports = async (callback, mainWindow, sphinxApp) => {
|
|||||||
let i = 1
|
let i = 1
|
||||||
const torrents = (await sphinx.query("SELECT COUNT(*) AS c FROM torrents"))[0].c
|
const torrents = (await sphinx.query("SELECT COUNT(*) AS c FROM torrents"))[0].c
|
||||||
|
|
||||||
const torrentsArray = []
|
let torrentsArray = []
|
||||||
|
|
||||||
await forBigTable(sphinx, 'torrents', async (torrent) => {
|
await forBigTable(sphinx, 'torrents', async (torrent) => {
|
||||||
console.log('remember index', torrent.id, torrent.name, '[', i, 'of', torrents, ']')
|
console.log('remember index', torrent.id, torrent.name, '[', i, 'of', torrents, ']')
|
||||||
@ -247,6 +247,8 @@ module.exports = async (callback, mainWindow, sphinxApp) => {
|
|||||||
await sphinx.insertValues('torrents', torrent)
|
await sphinx.insertValues('torrents', torrent)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
torrentsArray = null
|
||||||
|
|
||||||
console.log('optimizing torrents')
|
console.log('optimizing torrents')
|
||||||
if(patchWindow)
|
if(patchWindow)
|
||||||
patchWindow.webContents.send('optimize', {field: 'torrents'})
|
patchWindow.webContents.send('optimize', {field: 'torrents'})
|
||||||
|
Reference in New Issue
Block a user