This file contains 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
[ | |
{ | |
"status": "success", | |
"systemTime": 1485206254203, | |
"cardFamily": "Bonus", | |
"binNumber": "528293", | |
"bankName": "T\u00fcrkiye Finans Kat\u0131l\u0131m Bankas\u0131", | |
"locale": "tr", | |
"cardAssociation": "MASTER_CARD", | |
"conversationId": "123456789", |
This file contains 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
def queryset_chunker(queryset, order_by='-pk', chunk_size=5000): | |
""" | |
Takes lazy queryset and chunks it by given chunk_size. | |
:param queryset: type of queryset. This is a lazy queryset to | |
split into chunks | |
:type queryset: QuerySet | |
:param chunk_size: size of smaller pieces | |
:type chunk_size: int | |
""" |
This file contains 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
# this script finds and uploads subtitles which matches all(or under given parent folder) video files in your putio account. |