ref: insert separator before synthetic urls
This commit is contained in:
@@ -520,6 +520,9 @@ def export_json():
|
|||||||
DB = CacheDB()
|
DB = CacheDB()
|
||||||
url_map = DB.jsonUrlMap()
|
url_map = DB.jsonUrlMap()
|
||||||
maxUrlId = max(url_map.keys())
|
maxUrlId = max(url_map.keys())
|
||||||
|
# just a visual separator
|
||||||
|
maxUrlId += 1
|
||||||
|
url_map[maxUrlId] = '---'
|
||||||
submap = {}
|
submap = {}
|
||||||
total = DB.count(done=1)
|
total = DB.count(done=1)
|
||||||
with open(CACHE_DIR / 'ipa.json', 'w') as fp:
|
with open(CACHE_DIR / 'ipa.json', 'w') as fp:
|
||||||
@@ -579,6 +582,8 @@ def diskPath(uid: int, ext: str) -> Path:
|
|||||||
|
|
||||||
|
|
||||||
def printProgress(blocknum, bs, size):
|
def printProgress(blocknum, bs, size):
|
||||||
|
if size == 0:
|
||||||
|
return
|
||||||
percent = (blocknum * bs) / size
|
percent = (blocknum * bs) / size
|
||||||
done = "#" * int(40 * percent)
|
done = "#" * int(40 * percent)
|
||||||
print(f'\r[{done:<40}] {percent:.1%}', end='')
|
print(f'\r[{done:<40}] {percent:.1%}', end='')
|
||||||
|
|||||||
Reference in New Issue
Block a user