Commit b6a8aa25 authored by Administrator's avatar Administrator

Fix all_groups from summary

parent 5a65b5df
......@@ -17,6 +17,9 @@ class User:
self.obsolete = obsolete
self.permanent = permanent
def __repr__(self):
return "<User({})>".format(self.username)
def summarize(self):
return ":".join((
self.username, ",".join(self.groups), ",".join(self.all_groups),
......@@ -33,7 +36,7 @@ class User:
timestamp = datetime.fromtimestamp(float(timestamp_str))
obsolete = obsolete_str == "True"
groups = group_str.split(",")
all_groups = group_str.split(",")
all_groups = all_group_str.split(",")
permanent = permanent_str == "True"
return User(name, groups, all_groups, timestamp, obsolete, permanent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment