From 50f42f850a7226521e90fd409f4ca6b60f1f0612 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Fri, 9 Feb 2024 10:48:39 -0500 Subject: [PATCH] idac: fix database issues --- titles/idac/season2.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/titles/idac/season2.py b/titles/idac/season2.py index 072046a..1f27b53 100644 --- a/titles/idac/season2.py +++ b/titles/idac/season2.py @@ -1392,7 +1392,8 @@ class IDACSeason2(IDACBase): # get the use_count and story_use_count of the used car style_car_id = data.get("style_car_id") car_mileage = data.pop("car_mileage") - used_car = await self.data.item.get_car(user_id, self.version, style_car_id)._asdict() + used_car = await self.data.item.get_car(user_id, self.version, style_car_id) + used_car = used_car._asdict() # increase the use_count and story_use_count of the used car used_car["use_count"] += 1 @@ -1564,7 +1565,8 @@ class IDACSeason2(IDACBase): # get the use_count and story_use_count of the used car style_car_id = data.get("style_car_id") car_mileage = data.get("car_mileage") - used_car = await self.data.item.get_car(user_id, self.version, style_car_id)._asdict() + used_car = await self.data.item.get_car(user_id, self.version, style_car_id) + used_car = used_car._asdict() # increase the use_count and story_use_count of the used car used_car["use_count"] += 1 @@ -2230,7 +2232,8 @@ class IDACSeason2(IDACBase): # get the use_count and theory_use_count of the used car style_car_id = data.get("style_car_id") car_mileage = data.get("car_mileage") - used_car = await self.data.item.get_car(user_id, self.version, style_car_id)._asdict() + used_car = await self.data.item.get_car(user_id, self.version, style_car_id) + used_car = used_car._asdict() # increase the use_count and theory_use_count of the used car used_car["use_count"] += 1 @@ -2347,7 +2350,8 @@ class IDACSeason2(IDACBase): # get the use_count and net_vs_use_count of the used car style_car_id = data.get("style_car_id") car_mileage = data.pop("car_mileage") - used_car = await self.data.item.get_car(user_id, self.version, style_car_id)._asdict() + used_car = await self.data.item.get_car(user_id, self.version, style_car_id) + used_car = used_car._asdict() # increase the use_count and net_vs_use_count of the used car used_car["use_count"] += 1 @@ -2444,7 +2448,8 @@ class IDACSeason2(IDACBase): # get the use_count and net_vs_use_count of the used car style_car_id = data.get("style_car_id") car_mileage = data.pop("car_mileage") - used_car = await self.data.item.get_car(user_id, self.version, style_car_id)._asdict() + used_car = await self.data.item.get_car(user_id, self.version, style_car_id) + used_car = used_car._asdict() # increase the use_count and net_vs_use_count of the used car used_car["use_count"] += 1