]> git.ipfire.org Git - location/libloc.git/commitdiff
Add an example country to the python create-database example script.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 20 Aug 2020 17:28:55 +0000 (19:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Aug 2020 09:55:54 +0000 (09:55 +0000)
The generated database is used by the testsuite of the perl binding.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
examples/python/create-database.py

index 0eaa9454631f30fd32ceedb7c952532bd3e41160..b57ad9413a35054f587ce27f6cd6f45523ec50de 100644 (file)
@@ -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"