Commit local changes
This commit is contained in:
parent
3797ea178a
commit
12001b1640
@ -220,11 +220,7 @@ class Importer:
|
|||||||
def import_into_db(self):
|
def import_into_db(self):
|
||||||
|
|
||||||
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
|
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
|
||||||
fs = [
|
for package in self.packages: refresh_package(self, self.project, package)
|
||||||
executor.submit(refresh_package, self, self.project, package)
|
|
||||||
for package in self.packages
|
|
||||||
]
|
|
||||||
concurrent.futures.wait(fs)
|
|
||||||
|
|
||||||
self.db.conn.commit()
|
self.db.conn.commit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user