Skip to content

Commit

Permalink
add uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Dec 28, 2023
1 parent 9ad1051 commit f561d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coderbot/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def save(self, activity):
if activity.get("default", False) is True:
self.activities.update({'default': False})
if self.activities.search(self.query.id == activity.get("id")) == []:
activity = self.activities.insert(activity)
self.activities.insert(activity)
else:
self.activities.update(activity, self.query.id == activity.get("id"))
activity = self.activities.search(self.query.id == activity.get("id"))[0]
Expand Down

0 comments on commit f561d46

Please sign in to comment.