From 3d8ffaa098cceea58f6fc37b190fcd30b1b0df8a Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Tue, 14 Nov 2023 21:24:33 -0500 Subject: [PATCH] sao: fix csc fields not being integers --- titles/sao/base.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/titles/sao/base.py b/titles/sao/base.py index 6a1637c..24a3c2a 100644 --- a/titles/sao/base.py +++ b/titles/sao/base.py @@ -934,7 +934,7 @@ class SaoBase: shops = self.load_data_csv("GashaMedalShops") for shop in shops: - tmp = GashaMedalShop.from_args(shop['GashaMedalShopId'], shop['Name'], shop['GashaMedalId'], shop['UseGashaMedalNum'], shop['PurchaseLimit']) + tmp = GashaMedalShop.from_args(int(shop['GashaMedalShopId']), shop['Name'], int(shop['GashaMedalId']), int(shop['UseGashaMedalNum']), int(shop['PurchaseLimit'])) tmp.sales_end_date = datetime(2121, 1, 1, 0, 0, 0, 0) # always open resp.data_list.append(tmp) @@ -953,13 +953,13 @@ class SaoBase: shops = self.load_data_csv("ResEarnCampaignShops") for shop in shops: - tmp = ResEarnCampaignShop.from_args(shop['ResEarnCampaignShopId'], shop['ResEarnCampaignApplicationId'], shop['Name']) - tmp.selling_yui_medal = shop['SellingYuiMedal'] - tmp.selling_col = shop['SellingCol'] - tmp.selling_event_item_id = shop['SellingEventItemId'] - tmp.selling_event_item_num = shop['SellingEventItemNum'] - tmp.purchase_limit = shop['PurchaseLimit'] - tmp.get_application_point = shop['GetApplicationPoint'] + tmp = ResEarnCampaignShop.from_args(int(shop['ResEarnCampaignShopId']), int(shop['ResEarnCampaignApplicationId']), shop['Name']) + tmp.selling_yui_medal = int(shop['SellingYuiMedal']) + tmp.selling_col = int(shop['SellingCol']) + tmp.selling_event_item_id = int(shop['SellingEventItemId']) + tmp.selling_event_item_num = int(shop['SellingEventItemNum']) + tmp.purchase_limit = int(shop['PurchaseLimit']) + tmp.get_application_point = int(shop['GetApplicationPoint']) tmp.sales_end_date = datetime(2121, 1, 1, 0, 0, 0, 0) # always open