From f0c82cf32533f9172426b324dcbb50c06e729b92 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Wed, 28 Jun 2023 09:32:12 +0200 Subject: [PATCH] Update readme.md --- readme.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 63d6589..4105351 100644 --- a/readme.md +++ b/readme.md @@ -198,7 +198,26 @@ database "schema" without migration. Sadly you need to export the cards from the mongodb and import it again using `serra add ` commands -You can find some inspiration in the `utils/` Folder in this repo +I wrote a little helper script in python to export all the cards in format set/number and generate some queries + +``` +python3 export.py > add_commands.sh + +head add_commands.sh +./serra add 5ed/3 -c 1 +./serra add mmq/2 -c 1 +./serra add p02/4 -c 1 +./serra add chr/44 -c 1 +./serra add 4ed/291 -c 1 +./serra add 4ed/292 -c 1 +./serra add mir/2 -c 1 +./serra add usg/231 -c 1 +./serra add mir/155 -c 1 +./serra add pcy/29 -c 2 + + +bash add_commands.sh +``` # Development