mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-21 04:30:30 -05:00
update stats
change server id fIx change log server complaining when empty read
This commit is contained in:
@ -9,9 +9,11 @@ class LogResource(Resource):
|
||||
|
||||
if log_info is False:
|
||||
print('could not read log file ' + path)
|
||||
|
||||
|
||||
empty_read = (log_info == False) or (log_info == True)
|
||||
|
||||
return {
|
||||
'success' : log_info is not False,
|
||||
'length': -1 if log_info is False else len(log_info),
|
||||
'length': -1 if empty_read else len(log_info),
|
||||
'data': log_info
|
||||
}
|
||||
|
Reference in New Issue
Block a user