mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix E127 errors introduced by previous commit
using: ``` autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E127 . ```
This commit is contained in:
committed by
Nicola Soranzo
parent
21b44bf348
commit
a353b2e88f
@@ -100,9 +100,9 @@ def get_sa_session(ini_file):
|
||||
if not db_con:
|
||||
db_con = "sqlite:///%s?isolation_level=IMMEDIATE" % ini_config.database
|
||||
model = galaxy.model.mapping.init(ini_config.file_path,
|
||||
db_con,
|
||||
engine_options={},
|
||||
create_tables=False)
|
||||
db_con,
|
||||
engine_options={},
|
||||
create_tables=False)
|
||||
return model.context.current, ini_config
|
||||
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ def build_index(sa_session, whoosh_index_dir):
|
||||
lddas_indexed = 0
|
||||
for id, name, info, dbkey, message in get_lddas(sa_session):
|
||||
writer.add_document(id=id,
|
||||
name=to_unicode(name),
|
||||
info=to_unicode(info),
|
||||
dbkey=to_unicode(dbkey),
|
||||
message=to_unicode(message))
|
||||
name=to_unicode(name),
|
||||
info=to_unicode(info),
|
||||
dbkey=to_unicode(dbkey),
|
||||
message=to_unicode(message))
|
||||
lddas_indexed += 1
|
||||
writer.commit()
|
||||
print("Number of active library datasets indexed: ", lddas_indexed)
|
||||
|
||||
Reference in New Issue
Block a user