From 004330ecd3040ae9f1aa54b7be874e67040284e6 Mon Sep 17 00:00:00 2001 From: marwoodandrew Date: Wed, 2 Aug 2023 16:11:50 +1000 Subject: [PATCH 1/2] Bump requirements for pyyaml --- server/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/requirements.txt b/server/requirements.txt index 5c6a18a60..1ac8b68f6 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -212,7 +212,7 @@ pytz==2022.5 # icalendar # superdesk-core # tzlocal -pyyaml==5.4.1 +pyyaml==6.0.1 # via superdesk-core raven[flask]==6.10.0 # via superdesk-core From ee622c38a36f3a90c82521fa26e3d81e59888884 Mon Sep 17 00:00:00 2001 From: marwoodandrew Date: Wed, 2 Aug 2023 16:26:18 +1000 Subject: [PATCH 2/2] fix flake error --- server/data_updates/00014_20180801-143538_vocabularies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/data_updates/00014_20180801-143538_vocabularies.py b/server/data_updates/00014_20180801-143538_vocabularies.py index 0b9e1a91f..a4ec55156 100644 --- a/server/data_updates/00014_20180801-143538_vocabularies.py +++ b/server/data_updates/00014_20180801-143538_vocabularies.py @@ -642,7 +642,7 @@ def forwards(self, mongodb_collection, mongodb_database): if 'schema' in vocabulary: schema = vocabulary['schema'] for field in ['name', 'qcode']: - if field in vocabulary['schema'] and type(vocabulary['schema']) == dict: + if field in vocabulary['schema'] and isinstance(vocabulary['schema'], dict): schema[field]['required'] = True mongodb_collection.update({'_id': vocabulary.get(config.ID_FIELD)}, {'$set': {'schema': schema}})