This commit is contained in:
Jani Bonnevier 2016-06-29 20:11:22 +02:00
Родитель 3e9f1321b7
Коммит 07280973cd
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -163,7 +163,8 @@ class AppReleaseImporter(Importer):
def import_data(self, key: str, value: Any, obj: Any) -> None:
# if this is a nightly, delete all other nightlies
if value['version'].endswith('-nightly'):
AppRelease.objects.filter(app__id=obj.id, version__endswith='-nightly').delete()
AppRelease.objects.filter(
app__id=obj.id,version__endswith='-nightly').delete()
# combine versions into specs
value['platform_version_spec'] = to_spec(