Spaces:
Sleeping
Sleeping
Toan2004-ai commited on
Commit ·
51d9cf8
1
Parent(s): ab8f91a
add readme config
Browse files
engine.py
CHANGED
|
@@ -177,7 +177,7 @@ def final_process_eme_technical_guided(input_text):
|
|
| 177 |
for item in contract_incentives:
|
| 178 |
if not isinstance(item, dict): continue
|
| 179 |
|
| 180 |
-
desc = item.get("
|
| 181 |
if "Points" in desc or "Qantas" in desc:
|
| 182 |
points_match = re.search(r'(\d{1,3}(?:,\d{3})*)', desc)
|
| 183 |
points = int(points_match.group(1).replace(',', '')) if points_match else None
|
|
|
|
| 177 |
for item in contract_incentives:
|
| 178 |
if not isinstance(item, dict): continue
|
| 179 |
|
| 180 |
+
desc = item.get("displayName", "")
|
| 181 |
if "Points" in desc or "Qantas" in desc:
|
| 182 |
points_match = re.search(r'(\d{1,3}(?:,\d{3})*)', desc)
|
| 183 |
points = int(points_match.group(1).replace(',', '')) if points_match else None
|