achiv patch

This commit is contained in:
cheykrym 2026-04-09 04:02:03 +03:00
parent e0ad06a87c
commit 6bd69cd7fb
2 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,7 @@ async def send_update_increment_to_achievement_service(
user_id: str, user_id: str,
achievement_code: str, achievement_code: str,
increment: int, increment: int,
mode: str="add",
with_httpexception=False, with_httpexception=False,
sleep: int = None sleep: int = None
) -> dict: ) -> dict:
@ -21,7 +22,8 @@ async def send_update_increment_to_achievement_service(
json={ json={
"user_id": str(user_id), "user_id": str(user_id),
"achievement_code": str(achievement_code), "achievement_code": str(achievement_code),
"increment": int(increment) "increment": int(increment),
"mode": str(mode)
}) })
if response.status_code != 200: if response.status_code != 200:

View File

@ -1,6 +1,6 @@
[project] [project]
name = "common-lib" name = "common-lib"
version = "0.0.56" version = "0.0.57"
description = "Библиотека общих компонентов для микросервисов yobble" description = "Библиотека общих компонентов для микросервисов yobble"
authors = [{ name = "cheykrym", email = "you@example.com" }] authors = [{ name = "cheykrym", email = "you@example.com" }]
license = "MIT" license = "MIT"