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():
|
if act_id == act.get_id():
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
if found:
|
if not found:
|
||||||
raise RuntimeError("Cannot generate unique activity id.")
|
return act_id
|
||||||
|
raise RuntimeError("Cannot generate unique activity id.")
|
||||||
return act_id
|
|
||||||
|
|
||||||
class ActivityCreationHandler(gobject.GObject):
|
class ActivityCreationHandler(gobject.GObject):
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
Loading…
Reference in New Issue
Block a user