mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-08 08:46:16 +01:00
Updated progress bar message
This commit is contained in:
parent
79f4355913
commit
7acb3587e0
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class Database:
|
||||||
|
|
||||||
sbo_file = self.open_file(f"{self.lib_path}sbo_repo/SLACKBUILDS.TXT")
|
sbo_file = self.open_file(f"{self.lib_path}sbo_repo/SLACKBUILDS.TXT")
|
||||||
|
|
||||||
bar = Bar("Database sbo creating", max=len(sbo_file),
|
bar = Bar("Creating sbo database", max=len(sbo_file),
|
||||||
suffix="%(percent)d%% - %(eta)ds")
|
suffix="%(percent)d%% - %(eta)ds")
|
||||||
|
|
||||||
cache = [] # init cache
|
cache = [] # init cache
|
||||||
|
@ -93,7 +93,7 @@ class Database:
|
||||||
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""".format(
|
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""".format(
|
||||||
self.table_name), values)
|
self.table_name), values)
|
||||||
self.con.commit()
|
self.con.commit()
|
||||||
cache = [] # reset cache after line
|
cache = [] # reset cache after 11 lines
|
||||||
bar.next()
|
bar.next()
|
||||||
bar.finish()
|
bar.finish()
|
||||||
self.con.close()
|
self.con.close()
|
||||||
|
|
Loading…
Add table
Reference in a new issue