ipulse-shared-core-ftredge 27.4.0__py3-none-any.whl → 27.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ipulse-shared-core-ftredge might be problematic. Click here for more details.
- ipulse_shared_core_ftredge/services/base/cache_aware_firestore_service.py +1 -2
- ipulse_shared_core_ftredge/services/charging_processors.py +2 -2
- {ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/METADATA +1 -1
- {ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/RECORD +7 -7
- {ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/WHEEL +0 -0
- {ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/licenses/LICENCE +0 -0
- {ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/top_level.txt +0 -0
|
@@ -7,8 +7,7 @@ from ...exceptions import ResourceNotFoundError, ServiceError
|
|
|
7
7
|
from ...cache.shared_cache import SharedCache
|
|
8
8
|
from ...models import BaseDataModel
|
|
9
9
|
|
|
10
|
-
T = TypeVar('T', bound=BaseDataModel)
|
|
11
|
-
0
|
|
10
|
+
T = TypeVar('T', bound=BaseDataModel)
|
|
12
11
|
|
|
13
12
|
class CacheAwareFirestoreService(BaseFirestoreService[T], Generic[T]):
|
|
14
13
|
"""
|
|
@@ -56,7 +56,7 @@ class ChargingProcessor:
|
|
|
56
56
|
updated_user_credits = pre_fetched_credits
|
|
57
57
|
elif self.user_charging_service: # Attempt to get current credits if not pre-fetched
|
|
58
58
|
try:
|
|
59
|
-
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid, 0, None)
|
|
59
|
+
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid=user_uid, required_credits_for_resource=0, pre_fetched_user_credits=None)
|
|
60
60
|
updated_user_credits = current_user_credits_from_verify
|
|
61
61
|
except Exception: # pylint: disable=broad-except
|
|
62
62
|
self.logger.warning(f"Could not fetch current credits for user {user_uid} for free item.")
|
|
@@ -77,7 +77,7 @@ class ChargingProcessor:
|
|
|
77
77
|
updated_user_credits = pre_fetched_credits
|
|
78
78
|
elif self.user_charging_service:
|
|
79
79
|
try:
|
|
80
|
-
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid, 0, None)
|
|
80
|
+
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid=user_uid, required_credits_for_resource=0, pre_fetched_user_credits=None)
|
|
81
81
|
updated_user_credits = current_user_credits_from_verify
|
|
82
82
|
except Exception: # pylint: disable=broad-except
|
|
83
83
|
self.logger.warning(f"Could not fetch current credits for user {user_uid} during debug bypass.")
|
{ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 27.4.
|
|
3
|
+
Version: 27.4.1
|
|
4
4
|
Summary: Shared Core models and Logger util for the Pulse platform project. Using AI for financial advisory and investment management.
|
|
5
5
|
Home-page: https://github.com/TheFutureEdge/ipulse_shared_core
|
|
6
6
|
Author: Russlan Ramdowar
|
{ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/RECORD
RENAMED
|
@@ -28,11 +28,11 @@ ipulse_shared_core_ftredge/models/user/userstatus.py,sha256=4uXa41NJqH27--yHN8o2
|
|
|
28
28
|
ipulse_shared_core_ftredge/monitoring/__init__.py,sha256=gUoJjT0wj-cQYnMWheWbh1mmRHmaeojmnBZTj7KPNus,61
|
|
29
29
|
ipulse_shared_core_ftredge/monitoring/tracemon.py,sha256=Trku0qrwWvEcvKsBWiYokd_G3fcH-5uP2wRVgcgIz_k,11596
|
|
30
30
|
ipulse_shared_core_ftredge/services/__init__.py,sha256=w02WgdTyTaRn54XPpCxLXzyTobVeUP5SHRjpbLH54_0,608
|
|
31
|
-
ipulse_shared_core_ftredge/services/charging_processors.py,sha256=
|
|
31
|
+
ipulse_shared_core_ftredge/services/charging_processors.py,sha256=JrOfuNHbdfjeGoPDBfgMHw58rcvYgUaM036_G47Tv6E,16519
|
|
32
32
|
ipulse_shared_core_ftredge/services/user_charging_service.py,sha256=WNVGn77Rcy_Al3M9wF0VZPYQVWL__E2baVRDQeA37I4,14609
|
|
33
33
|
ipulse_shared_core_ftredge/services/base/__init__.py,sha256=hP2x_F07nycNj6_WCIQE7-8o84cIRj-tZlGwrA1yIcI,491
|
|
34
34
|
ipulse_shared_core_ftredge/services/base/base_firestore_service.py,sha256=leZFwxb1ruheypqudpKnuNtRQXtO4KNeoJk6ZACozHc,19512
|
|
35
|
-
ipulse_shared_core_ftredge/services/base/cache_aware_firestore_service.py,sha256=
|
|
35
|
+
ipulse_shared_core_ftredge/services/base/cache_aware_firestore_service.py,sha256=rwyaHWrqXqOYXQWAnVqhA9qokZjjBLmaJ1WF9ZZDV-w,12560
|
|
36
36
|
ipulse_shared_core_ftredge/services/base/multi_collection_cache_aware_firestore_service.py,sha256=Z-L20YkGhArTlwabPsqRXew-o87oL_9B5WOEh5zF0A4,10739
|
|
37
37
|
ipulse_shared_core_ftredge/services/catalog/__init__.py,sha256=ctc2nDGwsW_Ji4lk9pys3oyNwR_V-gHSbSHawym5fKQ,385
|
|
38
38
|
ipulse_shared_core_ftredge/services/catalog/catalog_subscriptionplan_service.py,sha256=X5xAi9sOk_F1ky0ECwPVlwIPPsN2PrZC6bN_pASGDjQ,9702
|
|
@@ -49,8 +49,8 @@ ipulse_shared_core_ftredge/services/user/userstatus_operations.py,sha256=Om9d94c
|
|
|
49
49
|
ipulse_shared_core_ftredge/utils/__init__.py,sha256=JnxUb8I2MRjJC7rBPXSrpwBIQDEOku5O9JsiTi3oun8,56
|
|
50
50
|
ipulse_shared_core_ftredge/utils/custom_json_encoder.py,sha256=DblQLD0KOSNDyQ58wQRogBrShIXzPIZUw_oGOBATnJY,1366
|
|
51
51
|
ipulse_shared_core_ftredge/utils/json_encoder.py,sha256=QkcaFneVv3-q-s__Dz4OiUWYnM6jgHDJrDMdPv09RCA,2093
|
|
52
|
-
ipulse_shared_core_ftredge-27.4.
|
|
53
|
-
ipulse_shared_core_ftredge-27.4.
|
|
54
|
-
ipulse_shared_core_ftredge-27.4.
|
|
55
|
-
ipulse_shared_core_ftredge-27.4.
|
|
56
|
-
ipulse_shared_core_ftredge-27.4.
|
|
52
|
+
ipulse_shared_core_ftredge-27.4.1.dist-info/licenses/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
|
|
53
|
+
ipulse_shared_core_ftredge-27.4.1.dist-info/METADATA,sha256=3NfRSOG2vmcn-S-5k7a1rjc8mGYWCD-RfBCWri6c4NI,782
|
|
54
|
+
ipulse_shared_core_ftredge-27.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
55
|
+
ipulse_shared_core_ftredge-27.4.1.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
|
|
56
|
+
ipulse_shared_core_ftredge-27.4.1.dist-info/RECORD,,
|
{ipulse_shared_core_ftredge-27.4.0.dist-info → ipulse_shared_core_ftredge-27.4.1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|