mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:19:24 +02:00
Improved CLI importer reliability and UX
This commit is contained in:
parent
6678c46d88
commit
ecb7c464a1
5 changed files with 184 additions and 81 deletions
|
@ -47,7 +47,7 @@ class Command(BaseCommand):
|
|||
self.stdout.write("Checking {} in-place imported files…".format(total))
|
||||
|
||||
missing = []
|
||||
for i, row in enumerate(candidates.values("id", "source")):
|
||||
for i, row in enumerate(candidates.values("id", "source").iterator()):
|
||||
path = row["source"].replace("file://", "")
|
||||
progress(self.stdout, i + 1, total)
|
||||
if not os.path.exists(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue