mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 20:21:55 +02:00
Added stats endpoint for domain
This commit is contained in:
parent
be388870a3
commit
032197da3f
5 changed files with 71 additions and 1 deletions
|
@ -617,6 +617,8 @@ class UploadQuerySet(models.QuerySet):
|
|||
def for_federation(self):
|
||||
return self.filter(import_status="finished", mimetype__startswith="audio/")
|
||||
|
||||
def with_file(self):
|
||||
return self.exclude(audio_file=None).exclude(audio_file='')
|
||||
|
||||
TRACK_FILE_IMPORT_STATUS_CHOICES = (
|
||||
("pending", "Pending"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue