Fix activity ID generation logic
This commit is contained in:
parent
3eeec9bf07
commit
4cf8f321f0
@ -47,10 +47,9 @@ def create_activity_id():
|
||||
if act_id == act.get_id():
|
||||
found = True
|
||||
break
|
||||
if found:
|
||||
raise RuntimeError("Cannot generate unique activity id.")
|
||||
|
||||
return act_id
|
||||
if not found:
|
||||
return act_id
|
||||
raise RuntimeError("Cannot generate unique activity id.")
|
||||
|
||||
class ActivityCreationHandler(gobject.GObject):
|
||||
__gsignals__ = {
|
||||
|
Loading…
Reference in New Issue
Block a user