Fixing two i-am-not-so-fast bugs
This commit is contained in:
parent
5b0ca05fe3
commit
2cf493eb08
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -130,13 +130,13 @@ def load_users():
|
||||||
for l in f:
|
for l in f:
|
||||||
l = l.strip()
|
l = l.strip()
|
||||||
if l.startswith("#"):
|
if l.startswith("#"):
|
||||||
m = re.match("#\s+created by\s+(\S+)")
|
m = re.match("#\s+created by\s+(\S+)", l)
|
||||||
if m:
|
if m:
|
||||||
creator = m.group(1)
|
creator = m.group(1)
|
||||||
continue
|
continue
|
||||||
m = re.match("(^\S+).*-Password\s+:=\s+\"(\S+)\"", l)
|
m = re.match("(^\S+).*-Password\s+:=\s+\"(\S+)\"", l)
|
||||||
if m:
|
if m:
|
||||||
users.append((m.group(1), m.group(2), creator)
|
users.append((m.group(1), m.group(2), creator))
|
||||||
creator = None
|
creator = None
|
||||||
return users
|
return users
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue