Resolve "regression : multi-artist break fake data import"

merge-requests/2358/merge
petitminion 2024-10-24 12:31:49 +00:00
rodzic 2f0b342866
commit fc6d8ed73c
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -7,11 +7,11 @@ from funkwhale_api.music import factories
def create_data(count=25):
artists = factories.ArtistFactory.create_batch(size=count)
for artist in artists:
print("Creating data for", artist)
acs = factories.ArtistCreditFactory.create_batch(size=count)
for ac in acs:
print("Creating data for", ac.artist)
albums = factories.AlbumFactory.create_batch(
artist=artist, size=random.randint(1, 5)
artist_credit=ac, size=random.randint(1, 5)
)
for album in albums:
factories.UploadFactory.create_batch(

Wyświetl plik

@ -0,0 +1 @@
fix fakedata generation regression from multiartist (#2343)