Skip to content

Commit 18c79b9

Browse files
committed
Fixed TimelineEntry and Result parsing
1 parent 81fd4be commit 18c79b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gophish/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def parse(cls, json):
8787
for key, val in json.items():
8888
if key in cls._valid_properties:
8989
setattr(result, key, val)
90+
return result
9091

9192

9293
class TimelineEntry(object):
@@ -101,6 +102,7 @@ def parse(cls, json):
101102
setattr(entry, key, details)
102103
elif key in cls._valid_properties:
103104
setattr(entry, key, val)
105+
return entry
104106

105107

106108
class User(Model):

0 commit comments

Comments
 (0)