Skip to content

Commit 10977f0

Browse files
committed
Fix changing edit group ID
1 parent c8125cf commit 10977f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "wikidata-bot-framework"
7-
version = "7.0.5"
7+
version = "7.0.6"
88
description = "A framework for making Wikidata bots."
99
readme = "README.md"
1010
dependencies = [

wikidata_bot_framework/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class PropertyAdderBot(ABC):
5050
def __init__(self):
5151
load_sentry()
5252
self.config = Config()
53+
self.__random_hex = get_random_hex()
5354

5455
def set_config(self, config: Config):
5556
self.config = config
@@ -61,7 +62,7 @@ def get_edit_group_id(self) -> Union[str, None]:
6162
6263
:return: The edit group ID for the bot. Return None to omit it.
6364
"""
64-
return get_random_hex()
65+
return self.__random_hex
6566

6667
@abstractmethod
6768
def get_edit_summary(self, page: EntityPage) -> str:

0 commit comments

Comments
 (0)