8000 Rollback changes to unnecessary fields · domdfcoding/github3.py@2bf6380 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bf6380

Browse files
author
staticdev
committed
Rollback changes to unnecessary fields
1 parent 0f2b844 commit 2bf6380

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/github3/gists/history.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ def _update_attributes(self, history) -> None:
5353
self.url = self._api = history["url"]
5454
self.version = history["version"]
5555
self.user = users.ShortUser(history["user"], self)
56-
self.change_status = history.get("change_status")
56+
self.change_status = history["change_status"]
5757
self.additions = self.change_status.get("additions")
5858
self.deletions = self.change_status.get("deletions")
59-
self.total = self.change_status.get("total")
60-
self.committed_at = self._strptime(history.get("committed_at"))
59+
self.total = self.change_status["total"]
60+
self.committed_at = self._strptime(history["committed_at"])
6161

6262
def _repr(self) -> str:
6363
return f"<Gist History [{self.version}]>"

0 commit comments

Comments
 (0)
0