duplicate keys in submission dictionary
parent
af99cc62f0
commit
3774f41d01
|
@ -199,7 +199,6 @@ class Submission(Base):
|
||||||
'url': self.realurl(None),
|
'url': self.realurl(None),
|
||||||
'body': self.body,
|
'body': self.body,
|
||||||
'body_html': self.body_html,
|
'body_html': self.body_html,
|
||||||
'created_utc': self.created_utc,
|
|
||||||
'edited_utc': self.edited_utc or 0,
|
'edited_utc': self.edited_utc or 0,
|
||||||
'comment_count': self.comment_count,
|
'comment_count': self.comment_count,
|
||||||
'score': self.score,
|
'score': self.score,
|
||||||
|
@ -210,8 +209,7 @@ class Submission(Base):
|
||||||
'distinguish_level': self.distinguish_level,
|
'distinguish_level': self.distinguish_level,
|
||||||
'voted': self.voted if hasattr(self, 'voted') else 0,
|
'voted': self.voted if hasattr(self, 'voted') else 0,
|
||||||
'flags': flags,
|
'flags': flags,
|
||||||
'author': '👻' if self.ghost else self.author.json,
|
'author': '👻' if self.ghost else self.author.json
|
||||||
'comment_count': self.comment_count
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if "replies" in self.__dict__:
|
if "replies" in self.__dict__:
|
||||||
|
|
Loading…
Reference in New Issue