modelswrkpi 9.4.1__py3-none-any.whl → 9.5.0__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 modelswrkpi might be problematic. Click here for more details.
- models/bro_clicks/load_balancer/v2.cpython-310-x86_64-linux-gnu.so +0 -0
- models/bro_clicks/load_balancer/v2.py +10 -3
- models/bro_clicks/load_balancer/v3.cpython-310-x86_64-linux-gnu.so +0 -0
- models/bro_clicks/load_balancer/v3.py +1 -3
- models/bro_clicks/load_balancer/v7.cpython-310-x86_64-linux-gnu.so +0 -0
- models/bro_clicks/load_balancer/v7.py +2 -2
- {modelswrkpi-9.4.1.dist-info → modelswrkpi-9.5.0.dist-info}/METADATA +1 -1
- {modelswrkpi-9.4.1.dist-info → modelswrkpi-9.5.0.dist-info}/RECORD +10 -10
- {modelswrkpi-9.4.1.dist-info → modelswrkpi-9.5.0.dist-info}/WHEEL +0 -0
- {modelswrkpi-9.4.1.dist-info → modelswrkpi-9.5.0.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -40,9 +40,16 @@ class LoadBalancerV2(LoadBalancer):
|
|
|
40
40
|
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
|
-
def exclude_list(self, crm_id, step, click_id, alias=''):
|
|
43
|
+
def exclude_list(self, crm_id, step, click_id, alias='', c_token=''):
|
|
44
|
+
if not c_token:
|
|
45
|
+
c = 'absce'
|
|
46
|
+
else:
|
|
47
|
+
c = c_token
|
|
44
48
|
decs = pd.read_sql(f"""SELECT gateway_id, processor, approved from {self.schema}.conversions
|
|
45
|
-
where crm_id = '{crm_id}'
|
|
49
|
+
where crm_id = '{crm_id}'
|
|
50
|
+
and time_stamp > (now() - INTERVAL '48 hours')::timestamp
|
|
51
|
+
and {f" c_token='{c}' " if c_token else f" click_id = '{click_id}' " } and coalesce(decline_reason, '') not ilike 'prepaid%%' """,
|
|
52
|
+
|
|
46
53
|
self.engine)
|
|
47
54
|
|
|
48
55
|
whd = ""
|
|
@@ -50,7 +57,7 @@ class LoadBalancerV2(LoadBalancer):
|
|
|
50
57
|
decs.gateway_id = decs.gateway_id.fillna(-1)
|
|
51
58
|
decs.processor = decs.processor.fillna('')
|
|
52
59
|
processors = decs.loc[decs.approved == 0].processor.astype(str).tolist()
|
|
53
|
-
if len(
|
|
60
|
+
if len(decs) > self._max_decline_attempts:
|
|
54
61
|
raise Exception('declined due to too many attempts')
|
|
55
62
|
p_break = []
|
|
56
63
|
for p in processors:
|
|
Binary file
|
|
@@ -25,12 +25,10 @@ class LoadBalancerV3(LoadBalancerV2):
|
|
|
25
25
|
'cc_type_mcc_conversion',
|
|
26
26
|
'cc_type_cc_level_conversion',
|
|
27
27
|
],
|
|
28
|
-
rewrite_route='initial_route'
|
|
28
|
+
rewrite_route='initial_route',
|
|
29
29
|
iin_schema='bro_clicks',
|
|
30
|
-
|
|
31
30
|
**kwargs):
|
|
32
31
|
|
|
33
|
-
|
|
34
32
|
is_new_route = False
|
|
35
33
|
if rewrite_route:
|
|
36
34
|
is_new_route = LoadBalancerV3._route_schema != rewrite_route
|
|
Binary file
|
|
@@ -165,7 +165,7 @@ class LoadBalancerV7(LoadBalancerV6):
|
|
|
165
165
|
|
|
166
166
|
def next_gateway(self, crm_id, date, step, click_id='', processor=False, cc_type=None, cc_first_8=False, recurse=0,
|
|
167
167
|
decs=False, ignore_user_exclusions=None,
|
|
168
|
-
proc_excl=[], is_tds=None, is_prepaid=True, **kwargs):
|
|
168
|
+
proc_excl=[], is_tds=None, is_prepaid=True, c_token=None, **kwargs):
|
|
169
169
|
# opt vals 1 = random gateway constrained only by cap, 2 = optimised gateway constrained only by cap, 3 = Hybrid approach not ignoring settings, 4 = over cap (over-rides to that if needed)
|
|
170
170
|
if is_prepaid is None:
|
|
171
171
|
raise TypeError('is_prepaid value must be pass as a boolean got NoneType')
|
|
@@ -179,7 +179,7 @@ class LoadBalancerV7(LoadBalancerV6):
|
|
|
179
179
|
if cc_first_8:
|
|
180
180
|
self.set_bin_info(cc_first_8)
|
|
181
181
|
try:
|
|
182
|
-
decs = self.exclude_list(crm_id, step, click_id, 'a.') if not decs else decs
|
|
182
|
+
decs = self.exclude_list(crm_id, step, click_id, 'a.', c_token=c_token) if not decs else decs
|
|
183
183
|
except Exception as e:
|
|
184
184
|
return str(e)
|
|
185
185
|
|
|
@@ -69,18 +69,18 @@ models/bro_clicks/load_balancer/__init__.py,sha256=TMIh-RpmoCaEMTLU7geYtcDpygX5K
|
|
|
69
69
|
models/bro_clicks/load_balancer/compile.py,sha256=0mD0LCkkR2aasWk8AdxVA6ylHN28l4bV6vwkA2TUQF4,661
|
|
70
70
|
models/bro_clicks/load_balancer/v1.cpython-310-x86_64-linux-gnu.so,sha256=0hyLWBENHXo1JlATlCCgT3TPYYsuKMbLPnNLNlZkyMg,177072
|
|
71
71
|
models/bro_clicks/load_balancer/v1.py,sha256=lLxqVcsH99_XS1tv_r-5jUP6C1gq462cuitg3trW1VE,11123
|
|
72
|
-
models/bro_clicks/load_balancer/v2.cpython-310-x86_64-linux-gnu.so,sha256=
|
|
73
|
-
models/bro_clicks/load_balancer/v2.py,sha256=
|
|
74
|
-
models/bro_clicks/load_balancer/v3.cpython-310-x86_64-linux-gnu.so,sha256=
|
|
75
|
-
models/bro_clicks/load_balancer/v3.py,sha256=
|
|
72
|
+
models/bro_clicks/load_balancer/v2.cpython-310-x86_64-linux-gnu.so,sha256=wjpz0YOMFvaTa4ddjfSdhAF-pC5y5cs4bvxSXjIx7f8,144464
|
|
73
|
+
models/bro_clicks/load_balancer/v2.py,sha256=M-ES1VK3RCmUuD96H2crsT3L5SBYME9960aF259Y5HA,7573
|
|
74
|
+
models/bro_clicks/load_balancer/v3.cpython-310-x86_64-linux-gnu.so,sha256=WnE_FWaIbEcy1g4Jpl12ldimZvdHa_I4W9qg6Z3UwCk,256496
|
|
75
|
+
models/bro_clicks/load_balancer/v3.py,sha256=7xfKo2j5YvPFPDd_KBl1s4hip9UPiWWsGHfcDm0D7yw,16800
|
|
76
76
|
models/bro_clicks/load_balancer/v4.cpython-310-x86_64-linux-gnu.so,sha256=kbQws2ObO2BxOOxjCaB7_H8IA1allHZ-zsX2kYMvrJo,136208
|
|
77
77
|
models/bro_clicks/load_balancer/v4.py,sha256=wGe66SzYIa4qiPnA4ZZQ5tisvXv_j7XZZCVrsCG23Eg,7732
|
|
78
78
|
models/bro_clicks/load_balancer/v5.cpython-310-x86_64-linux-gnu.so,sha256=gHA2J0wZsH9XdQSa13aQQELgOET9qCieiTB5RaJgztQ,127568
|
|
79
79
|
models/bro_clicks/load_balancer/v5.py,sha256=jA1KPoJLcm8szMGhaGuMSH-dZ6d0dwNv1PgGm0UHsJ0,8036
|
|
80
80
|
models/bro_clicks/load_balancer/v6.cpython-310-x86_64-linux-gnu.so,sha256=1X_3SFmkafbH3Ejj8q7aHUHHxNzpP6zlJXNTKehks2s,165360
|
|
81
81
|
models/bro_clicks/load_balancer/v6.py,sha256=oD_VYJ_Yvm5YJAGBx4IYxQHvIbKTeRq-Y00O38adOyQ,9587
|
|
82
|
-
models/bro_clicks/load_balancer/v7.cpython-310-x86_64-linux-gnu.so,sha256=
|
|
83
|
-
models/bro_clicks/load_balancer/v7.py,sha256=
|
|
82
|
+
models/bro_clicks/load_balancer/v7.cpython-310-x86_64-linux-gnu.so,sha256=QlSuCmiR08Skhet_DhRfCUsO7q_CjDoI2qNZuwseKWk,210064
|
|
83
|
+
models/bro_clicks/load_balancer/v7.py,sha256=8R51tU5o26SZduM4y-UkqheCwKDs_33H3yAzPQO6ueQ,18488
|
|
84
84
|
models/bro_clicks/load_balancer/v8.py,sha256=tkk6FpLgQvKCaFf2kmKsHhW_Pj4gJq4PcSe-DKcIUC4,264
|
|
85
85
|
models/cb911/__init__.py,sha256=Y3tX5WQYFUswdMMUpWqa9U_fNObUAhXcVrix3eXYP4k,64
|
|
86
86
|
models/cb911/alerts.cpython-310-x86_64-linux-gnu.so,sha256=LCsUfaTzdQKS6ZaKQbfLCNTZbpZqaJmEsWDTUOdHUrI,61808
|
|
@@ -136,7 +136,7 @@ models/reports/table_reports/inactive_report.cpython-310-x86_64-linux-gnu.so,sha
|
|
|
136
136
|
models/reports/table_reports/mtd_report.cpython-310-x86_64-linux-gnu.so,sha256=dHko7wWia9y9d-gIPC8uxycUnobII6hQgairSPRU168,74096
|
|
137
137
|
models/vaultx/__init__.py,sha256=PwYMmWXQMojeyFnQuQW3wNlv9dLUmX_uiDfCOHJN7XI,46
|
|
138
138
|
models/vaultx/ssc_cont.cpython-310-x86_64-linux-gnu.so,sha256=69kGuEko6oJEqxopS_4BxoX5S-Twq94eFwYJFEu_4B8,94992
|
|
139
|
-
modelswrkpi-9.
|
|
140
|
-
modelswrkpi-9.
|
|
141
|
-
modelswrkpi-9.
|
|
142
|
-
modelswrkpi-9.
|
|
139
|
+
modelswrkpi-9.5.0.dist-info/METADATA,sha256=kW1UVkzHaui7vRrL7ufv6n0Ihl_5S4Bej9cYMrT5L9g,346
|
|
140
|
+
modelswrkpi-9.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
141
|
+
modelswrkpi-9.5.0.dist-info/top_level.txt,sha256=fOgLNy4xnMfp0ihe_kFhY_yH71kNkdEQG68z8FoLR4g,19
|
|
142
|
+
modelswrkpi-9.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|