gault-millau/apps/gallery/transfer.py
2019-10-04 16:20:04 +05:00

27 lines
727 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Структура fields:
key - поле в таблице postgres
value - поле или группа полей в таблице legacy
В случае передачи группы полей каждое поле представляет собой кортеж, где:
field[0] - название аргумента
field[1] - название поля в таблице legacy
Опционально: field[2] - тип данных для преобразования
"""
card = {
"Image": {
"data_type": "objects",
"dependencies": None,
"fields": {
"MercuryImages": {
"image": "attachment_file_name"
}
}
},
}
used_apps = None