mirror of
https://github.com/kennethreitz/gistapi.py.git
synced 2026-06-05 23:10:17 +00:00
whoops, set created_at
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class Gist(object):
|
||||
setattr(self, key, value)
|
||||
elif key == 'created_at':
|
||||
# Attach datetime
|
||||
datetime.strptime(value[:-6], '%Y/%m/%d %H:%M:%S')
|
||||
setattr(self, 'created_at', datetime.strptime(value[:-6], '%Y/%m/%d %H:%M:%S'))
|
||||
|
||||
elif key == 'comments':
|
||||
_comments = []
|
||||
|
||||
Reference in New Issue
Block a user