From: Stefan Schantl Date: Thu, 20 Aug 2020 17:28:55 +0000 (+0200) Subject: Add an example country to the python create-database example script. X-Git-Tag: 0.9.4~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33a92f6ad33d86de0f4448c7b1f2342cb055b09a;p=location%2Flibloc.git Add an example country to the python create-database example script. The generated database is used by the testsuite of the perl binding. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/examples/python/create-database.py b/examples/python/create-database.py index 0eaa945..b57ad94 100644 --- a/examples/python/create-database.py +++ b/examples/python/create-database.py @@ -20,6 +20,9 @@ with open(private_key_path, "r") as pkey: # Set a license w.license = "CC" + # Add a country + c = w.add_country("DE") + # Add an AS a = w.add_as(204867) a.name = "Lightning Wire Labs GmbH"