From eaa23ebe24fcb99ea762ada9f3b004e6afc46198 Mon Sep 17 00:00:00 2001 From: jonasled <jonas@jonasled.de> Date: Fri, 18 Oct 2019 10:58:46 +0200 Subject: [PATCH] added instruction on import --- import.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import.py b/import.py index 493435d..ecb6d78 100644 --- a/import.py +++ b/import.py @@ -1,3 +1,5 @@ +#To import data you need a excel style CSV (";" as seperator) with the first as short url (e.g. kurz.ml/example) and in the seccond row the long url (e.g http://example.com). +#Then run docker -it <container_name> python3 import.py Now you can paste the CSV as text and press enter again at the end import sqlite3 import os def table_check(): #Check if database exists -- GitLab