mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 09: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():
|
||||
master_status = db.engine.execute('SHOW MASTER STATUS;').fetchone()
|
||||
|
||||
position_json = {
|
||||
position_json = {
|
||||
'log_file': master_status[0],
|
||||
'log_pos': master_status[1]
|
||||
}
|
||||
}
|
||||
|
||||
print('Save the following in the file configured in your ES sync config JSON:')
|
||||
print(json.dumps(position_json))
|
||||
print('Save the following in the file configured in your ES sync config 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)
|
||||
bar = progressbar.ProgressBar(
|
||||
maxval=torrent_class.query.count(),
|
||||
|
|
Loading…
Reference in a new issue