Exemplo n.º 1
0
    def post_meta(payload):
        print "payload ::", payload

        date = datetime.now()
        my_timezone = timezone('US/Pacific')
        date = my_timezone.localize(date)
        date = date.astimezone(my_timezone)
        print "date is ", date

        battle = Battle(Developer_Issues=payload['Developer_Issues'],
                        Issues_Resolved=payload['Issues_Resolved'],
                        Issues_Pending=payload['Issues_Pending'],
                        Component_Failures=payload['Component_Failures'],
                        Component_Issues=payload['Component_Issues'],
                        Jiras=payload['Jiras']
                        # Date_Updated=date
                        )
        battle.save()