Skip to content
Snippets Groups Projects
Commit b6a8aa25 authored by Administrator's avatar Administrator
Browse files

Fix all_groups from summary

parent 5a65b5df
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment