mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:00:00 +00:00
fix broken import_to_es.py
This commit is contained in:
parent
c5d705210d
commit
1bc21bc599
|
@ -98,15 +98,15 @@ FLAVORS = [
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
master_status = db.engine.execute('SHOW MASTER STATUS;').fetchone()
|
master_status = db.engine.execute('SHOW MASTER STATUS;').fetchone()
|
||||||
|
|
||||||
position_json = {
|
position_json = {
|
||||||
'log_file': master_status[0],
|
'log_file': master_status[0],
|
||||||
'log_pos': master_status[1]
|
'log_pos': master_status[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
print('Save the following in the file configured in your ES sync config JSON:')
|
print('Save the following in the file configured in your ES sync config JSON:')
|
||||||
print(json.dumps(position_json))
|
print(json.dumps(position_json))
|
||||||
|
|
||||||
for flavor, torrent_class in FLAVORS:
|
for flavor, torrent_class in FLAVORS:
|
||||||
print('Importing torrents for index', flavor, 'from', torrent_class)
|
print('Importing torrents for index', flavor, 'from', torrent_class)
|
||||||
bar = progressbar.ProgressBar(
|
bar = progressbar.ProgressBar(
|
||||||
maxval=torrent_class.query.count(),
|
maxval=torrent_class.query.count(),
|
||||||
|
|
Loading…
Reference in a new issue