last occurance of space instead of -

This commit is contained in:
Justin 2023-03-23 18:14:11 +08:00 committed by GitHub
parent d46fc77e58
commit 8a700d37bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -951,8 +951,8 @@ def updateLeagueEvents(api_key, time, logf):
each = each.replace('nT', 'T', 1) each = each.replace('nT', 'T', 1)
if each[:2] in rank: if each[:2] in rank:
each = each.split('GC') each = each.split('GC')
score = each[1].rfind('-') score = each[1].rfind(' ')
score2 = each[1][score:score+3] score2 = each[1][score:score+4]
each2 = each[0] + score2 each2 = each[0] + score2
teams.append(each2) teams.append(each2)
except: except: