Skip to content

Commit 8ed2947

Browse files
committed
support feedback value (#6)
1 parent 7c95098 commit 8ed2947

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gorse/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, entry_point: str, api_key: str, timeout=None):
3838
self.timeout = timeout
3939

4040
def insert_feedback(
41-
self, feedback_type: str, user_id: str, item_id: str, timestamp: str
41+
self, feedback_type: str, user_id: str, item_id: str, timestamp: str, value: float = 0
4242
) -> dict:
4343
"""
4444
Insert a feedback.
@@ -52,6 +52,7 @@ def insert_feedback(
5252
"UserId": user_id,
5353
"ItemId": item_id,
5454
"Timestamp": timestamp,
55+
"Value": value,
5556
}
5657
],
5758
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
long_description = (this_directory / "README.md").read_text()
88

99
setup(name='PyGorse',
10-
version='0.4.9',
10+
version='0.4.10',
1111
description='Python SDK for gorse recommender system',
1212
packages=['gorse'],
1313
install_requires=['requests>=2.14.0', 'aiohttp>=3.8.3'],

0 commit comments

Comments
 (0)