mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:29:23 +02:00
See #170: store and compute modification date on artists
This commit is contained in:
parent
b5297150f0
commit
1654044a9f
12 changed files with 85 additions and 7 deletions
|
@ -384,7 +384,12 @@ def get_channel_from_rss_url(url, raise_exception=False):
|
|||
library=channel.library,
|
||||
delete_existing=True,
|
||||
)
|
||||
|
||||
latest_upload_date = max([upload.creation_date for upload in uploads])
|
||||
if (
|
||||
not channel.artist.modification_date
|
||||
or channel.artist.modification_date < latest_upload_date
|
||||
):
|
||||
common_utils.update_modification_date(channel.artist)
|
||||
return channel, uploads
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue