Fix parsing of versions with dashes

This commit is contained in:
Jorge-Rodriguez 2020-11-17 13:56:08 +02:00
parent da9d82ecc6
commit 0532ebd6ca
No known key found for this signature in database
GPG key ID: 43153D1EFD8F7D90

View file

@ -438,7 +438,7 @@ def get_account_locking(cursor, user, host):
cursor.execute("SELECT VERSION()") cursor.execute("SELECT VERSION()")
result = cursor.fetchone() result = cursor.fetchone()
version_str = result[0] version_str = result[0]
version = version_str.split('.') version = version_str.split('-')[0].split('.')
locking = {} locking = {}