fix handling of non present timelimit in UT2k4
This commit is contained in:
@@ -141,7 +141,8 @@ class RconUTEngineWebAdminUT2k4(RconUTEngineWebAdmin.RconUTEngineWebAdminMODCENT
|
||||
result = dict()
|
||||
result["ServerName"] = unicodedata.normalize("NFKD", ServerConfig["ServerName"])
|
||||
result["GameTypeSelect"] = self.gametype
|
||||
result["TimeLimit"] = ServerGame["TimeLimit"]
|
||||
if "TimeLimit" in ServerGame:
|
||||
result["TimeLimit"] = ServerGame["TimeLimit"]
|
||||
|
||||
#!!! sometime maps are not in the cycle (maybe because of mapvote + map number limit): so map might be None
|
||||
# + convert map file name to map name (using map list)
|
||||
|
||||
@@ -7,4 +7,4 @@ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported
|
||||
You should have received a copy of the license along with this
|
||||
work. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
||||
"""
|
||||
__version__ = "0.1.10"
|
||||
__version__ = "0.1.11"
|
||||
|
||||
Reference in New Issue
Block a user