From 60d3e72e41de46dd11be2eb70b0a13d11ee42e54 Mon Sep 17 00:00:00 2001 From: kiliczsh Date: Thu, 6 Jul 2023 21:15:16 +0300 Subject: [PATCH] Fix merge list key error --- gokyuzu/__init__.py | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gokyuzu/__init__.py b/gokyuzu/__init__.py index 188cfbb..fb85b38 100644 --- a/gokyuzu/__init__.py +++ b/gokyuzu/__init__.py @@ -860,7 +860,7 @@ def merge_unique_lists(self, first_list, second_list): for item in first_list: merged_list[item["handle"]] = item for item in second_list: - if item["handle"] not in merged_list: + if item["handle"] not in merged_list.keys(): merged_list[item["handle"]] = item return merged_list diff --git a/pyproject.toml b/pyproject.toml index 7c26e69..4c6705c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [tool.poetry] name = "gokyuzu" -version = "2.0.5" +version = "2.0.6" description = "bsky.social client library" authors = ["Muhammed Kılıç "] license = "MIT" diff --git a/setup.py b/setup.py index 8449d7b..a23497a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='gokyuzu', - version='2.0.5', + version='2.0.6', description='bsky.social client library', long_description=open('README.md', 'r', encoding='utf-8').read(), long_description_content_type='text/markdown',