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
| # -*- encoding: utf-8 -*- | |
| from __future__ import division | |
| from __future__ import unicode_literals | |
| from django.core.management.base import BaseCommand | |
| MIGRATE_PROGRESS_FMT = """\ | |
| Migrating task {state.count}/{state.strtotal}: \ | |
| {body}\ | |
| """ |
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
| import operator | |
| import copy | |
| def merge_list_of_dict(key, list_a, list_b): | |
| result = copy.copy(list_a) | |
| [ | |
| i.update(j) for i, j in zip( | |
| sorted(result, key=operator.itemgetter(key)), | |
| sorted(list_b, key=operator.itemgetter(key)) | |
| ) |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/aws/aws-sdk-go-v2/config" | |
| "github.com/aws/aws-sdk-go-v2/service/costexplorer" | |
| "github.com/aws/aws-sdk-go-v2/service/costexplorer/types" | |
| ) |