forked from Hay1tsme/artemis
idac: bugfixes
This commit is contained in:
parent
738027e132
commit
ee40d35f9e
|
@ -9,6 +9,7 @@ from sqlalchemy.dialects.mysql import insert
|
|||
|
||||
from core.data.schema import BaseData, metadata
|
||||
from core.config import CoreConfig
|
||||
import datetime
|
||||
|
||||
round_details = Table(
|
||||
"idac_round_info",
|
||||
|
@ -128,8 +129,8 @@ class IDACOnlineRounds(BaseData):
|
|||
tmp["round_id_in_json"] = round_id
|
||||
tmp["name"] = round_data["round_event_nm"]
|
||||
tmp["season"] = 2 # default season 2
|
||||
tmp["start_dt"] = round_data["start_dt"]
|
||||
tmp["end_dt"] = round_data["end_dt"]
|
||||
tmp["start_dt"] = datetime.datetime.fromtimestamp(round_data["start_dt"])
|
||||
tmp["end_dt"] = datetime.datetime.fromtimestamp(round_data["end_dt"])
|
||||
sql = insert(round_details).values(**tmp)
|
||||
result = await self.execute(sql)
|
||||
return result.lastrowid
|
||||
|
|
Loading…
Reference in New Issue