File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ def _update_attributes(self, history) -> None:
53
53
self .url = self ._api = history ["url" ]
54
54
self .version = history ["version" ]
55
55
self .user = users .ShortUser (history ["user" ], self )
56
- self .change_status = history . get ( "change_status" )
56
+ self .change_status = history [ "change_status" ]
57
57
self .additions = self .change_status .get ("additions" )
58
58
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" ] )
61
61
62
62
def _repr (self ) -> str :
63
63
return f"<Gist History [{ self .version } ]>"
You can’t perform that action at this time.
0 commit comments