@@ -20,7 +20,7 @@ def __init__(self):
20
20
self .urls = cfg .urls
21
21
22
22
self .update_time = 0
23
- self .time_delay = cfg .ahgs_api .get ("time_delay" )
23
+ self .time_delay : int = cfg .ahgs_api .get ("time_delay" , 20 )
24
24
25
25
self .raw_data = {
26
26
"status" : {"data" : [], "update_time" : 0 , "auth" : True },
@@ -41,6 +41,7 @@ def __init__(self):
41
41
"season_pass_ce" : {"data" : [], "update_time" : 0 , "auth" : True },
42
42
"season_pass_dd" : {"data" : [], "update_time" : 0 , "auth" : True },
43
43
"season_pass_pp" : {"data" : [], "update_time" : 0 , "auth" : True },
44
+ "season_pass_ff" : {"data" : [], "update_time" : 0 , "auth" : True },
44
45
"score_calc" : {"data" : [], "update_time" : 0 , "auth" : True },
45
46
"election_candidates" : {"data" : [], "update_time" : 0 , "auth" : True },
46
47
"election_terms" : {"data" : [], "update_time" : 0 , "auth" : True },
@@ -99,7 +100,7 @@ async def fetch_data(self, info_name: str = ""):
99
100
)
100
101
)
101
102
if update_needed :
102
- authed = self .raw_data .get (info_name )["auth" ]
103
+ authed = self .raw_data .get (info_name , {} )["auth" ]
103
104
url = self .urls [info_name ]
104
105
self .raw_data [info_name ]["update_time" ] = int (time ())
105
106
self .raw_data [info_name ]["data" ] = await self .get_url (url , authed )
0 commit comments