From mboxrd@z Thu Jan  1 00:00:00 1970
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: location@lists.ipfire.org
Subject: [PATCH 2/3] Add an example country to the python create-database
 example script.
Date: Thu, 20 Aug 2020 19:28:55 +0200
Message-ID: <20200820172856.6983-2-stefan.schantl@ipfire.org>
In-Reply-To: <20200820172856.6983-1-stefan.schantl@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8518842963505366848=="
List-Id: <location.lists.ipfire.org>

--===============8518842963505366848==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

The generated database is used by the testsuite of the perl binding.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 examples/python/create-database.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/python/create-database.py b/examples/python/create-data=
base.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 =3D "CC"
=20
+    # Add a country
+    c =3D w.add_country("DE")
+
     # Add an AS
     a =3D w.add_as(204867)
     a.name =3D "Lightning Wire Labs GmbH"
--=20
2.20.1


--===============8518842963505366848==--