mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:39:18 +02:00
More verbose/robust import_files command, also skips existing files
This commit is contained in:
parent
d98c33e5ed
commit
1672230f39
3 changed files with 68 additions and 17 deletions
|
@ -53,7 +53,7 @@ def guess_mimetype(f):
|
|||
|
||||
|
||||
def compute_status(jobs):
|
||||
statuses = jobs.values_list('status', flat=True).distinct()
|
||||
statuses = jobs.order_by().values_list('status', flat=True).distinct()
|
||||
errored = any([status == 'errored' for status in statuses])
|
||||
if errored:
|
||||
return 'errored'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue