fix handling of non present timelimit in UT2k4

This commit is contained in:
cclecle
2023-06-28 21:31:09 +01:00
parent cae9f8b03b
commit e327002a4e
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"