-
Notifications
You must be signed in to change notification settings - Fork 12
Description
There are a lot of fields in lingvodoc that are pretty much the same (for example six "Звук" fields), the issue is to replace them with older (or more suitable) instances with the same type.
Execution of same_field_types.py script is added to docker-compose.yml configuration file.
The script itself has only one argument, configuration file uri for ld container (/api/docker/docker.ini).
To execute script from shell use a command "python3 same_field_types.py /api/docker/docker.ini" inside ld container.
To execute script from another python script call it like "same_field_types.main(['same_field_types', '/api/docker/docker.ini'])".
WARNING - IF DON'T WANT TO "COLLAPSE" FIELDS (AND AFTER YOU DID IT) DELETE SCRIPT EXECUTION FROM DOCKER-COMPOSE CONFIGURATION FILE OR/AND COMMENT LAST LINES IN main FUNCTION OF same_field_types.py
Request link: ispras/lingvodoc#1318