[2/4] python example script: Add country name and continent code.

Message ID 20200910155747.12553-2-stefan.schantl@ipfire.org
State Accepted
Commit b186d83fdc4c2dc31a1f4fb711a0f102f2d3e51e
Headers
Series [1/4] perl: Add get_country_name() function. |

Commit Message

Stefan Schantl Sept. 10, 2020, 3:57 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 examples/python/create-database.py | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/examples/python/create-database.py b/examples/python/create-database.py
index bf8838b..04b2dc3 100644
--- a/examples/python/create-database.py
+++ b/examples/python/create-database.py
@@ -22,6 +22,8 @@  with open(private_key_path, "r") as pkey:
 
     # Add a country
     c = w.add_country("DE")
+    c.continent_code = "EU"
+    c.name = "Germany"
 
     # Add an AS
     a = w.add_as(204867)