Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 2, 2021
1 parent dc956f2 commit 2cba54d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mitama/db/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def delete(self):
def on(self, evt):
return self._event_handlers[evt]

@classmethod
def listen(self, evt):
self._event_handlers[evt] = Event()

@classmethod
def list(cls, cond=None):
if cond != None:
Expand Down

0 comments on commit 2cba54d

Please sign in to comment.