This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x38017949acE440BB4740B1819b69A931EeeA88C8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func ParseTime(formatted string) (time.Time, error) { | |
var layouts = [...]string{ | |
"Mon, _2 Jan 2006 15:04:05 MST", | |
"Mon, _2 Jan 2006 15:04:05 -0700", | |
time.ANSIC, | |
time.UnixDate, | |
time.RubyDate, | |
time.RFC822, | |
time.RFC822Z, | |
time.RFC850, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import logging | |
import requests | |
from django.core.files.base import ContentFile | |
def get_profile_image(backend, user, response, is_new=False, *args, **kwargs): | |
if user is None: | |
return |