@@ -26,7 +26,7 @@ def index():
26
26
def list ():
27
27
# We have to make sure that the list isn't cached,
28
28
# since the list isn't really static.
29
- return send_from_directory (app .static_folder , app . config [ "FILENAME" ] ,
29
+ return send_from_directory (app .static_folder , "list.json" ,
30
30
cache_timeout = 0 )
31
31
32
32
@@ -336,7 +336,7 @@ def purgeOld(self):
336
336
337
337
def load (self ):
338
338
try :
339
- with open (os .path .join ("static" , app . config [ "FILENAME" ] ), "r" ) as fd :
339
+ with open (os .path .join ("static" , "list.json" ), "r" ) as fd :
340
340
data = json .load (fd )
341
341
except FileNotFoundError :
342
342
return
@@ -359,7 +359,7 @@ def save(self):
359
359
self .maxServers = max (servers , self .maxServers )
360
360
self .maxClients = max (clients , self .maxClients )
361
361
362
- with open (os .path .join ("static" , app . config [ "FILENAME" ] ), "w" ) as fd :
362
+ with open (os .path .join ("static" , "list.json" ), "w" ) as fd :
363
363
json .dump ({
364
364
"total" : {"servers" : servers , "clients" : clients },
365
365
"total_max" : {"servers" : self .maxServers , "clients" : self .maxClients },
0 commit comments