Merge branch 'matega-master'

This commit is contained in:
Eddy Hintze 2021-03-18 17:19:23 +00:00
commit 3c4a6ef79c

View File

@ -114,8 +114,8 @@ class DownloadLibrary:
cache_file_key = 'trove:{name}'.format(name=web_name)
file_info = {
'uploaded_at': download.get('uploaded_at'),
'md5': download.get('md5'),
'uploaded_at': download.get('uploaded_at') or download.get('timestamp') or product.get('date_added', '0'),
'md5': download.get('md5', 'UNKNOWN_MD5'),
}
cache_file_info = self.cache_data.get(cache_file_key, {})