From 5895a7adfa3d4a94f96ae3e3d6e03a2f0b5fa80b Mon Sep 17 00:00:00 2001 From: Miles Mason Winther <42948872+mmwinther@users.noreply.github.com> Date: Thu, 2 May 2024 10:27:43 +0200 Subject: [PATCH 1/2] Remove hardcoded usernames --- demo/03629_hentogsend.ipynb | 2 +- demo/214_mnr_hentogsend.ipynb | 2 +- demo/312_stillnaring_csv.ipynb | 2 +- demo/312_stillnaring_fellesdaplalagring.ipynb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/03629_hentogsend.ipynb b/demo/03629_hentogsend.ipynb index 109edde..a923948 100644 --- a/demo/03629_hentogsend.ipynb +++ b/demo/03629_hentogsend.ipynb @@ -14,7 +14,7 @@ "from statbank import StatbankClient\n", "\n", "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"LAST360\")" + "statclient = StatbankClient(\"BRUKERNAVN\")" ] }, { diff --git a/demo/214_mnr_hentogsend.ipynb b/demo/214_mnr_hentogsend.ipynb index 216b3d4..5590186 100644 --- a/demo/214_mnr_hentogsend.ipynb +++ b/demo/214_mnr_hentogsend.ipynb @@ -15,7 +15,7 @@ "from io import StringIO\n", "\n", "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"LAST413\")" + "statclient = StatbankClient(\"BRUKERNAVN\")" ] }, { diff --git a/demo/312_stillnaring_csv.ipynb b/demo/312_stillnaring_csv.ipynb index 1f3d4b5..c8833d1 100644 --- a/demo/312_stillnaring_csv.ipynb +++ b/demo/312_stillnaring_csv.ipynb @@ -22,7 +22,7 @@ }, "outputs": [], "source": [ - "client=StatbankClient(\"Last312\")" + "client = StatbankClient(\"BRUKERNAVN\")" ] }, { diff --git a/demo/312_stillnaring_fellesdaplalagring.ipynb b/demo/312_stillnaring_fellesdaplalagring.ipynb index 98a0ab9..e87869b 100644 --- a/demo/312_stillnaring_fellesdaplalagring.ipynb +++ b/demo/312_stillnaring_fellesdaplalagring.ipynb @@ -24,7 +24,7 @@ "outputs": [], "source": [ "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"LAST312\")" + "statclient = StatbankClient(\"BRUKERNAVN\")" ] }, { From 4103233be5e02500f0f1de6751aa1f912c7b8f99 Mon Sep 17 00:00:00 2001 From: "Carl F. Corneil" Date: Thu, 2 May 2024 11:21:00 +0200 Subject: [PATCH 2/2] parameter is removed --- demo/03629_hentogsend.ipynb | 2 +- demo/214_mnr_hentogsend.ipynb | 2 +- demo/312_stillnaring_csv.ipynb | 2 +- demo/312_stillnaring_fellesdaplalagring.ipynb | 2 +- demo/check_env_changes.ipynb | 41 ------------------- 5 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 demo/check_env_changes.ipynb diff --git a/demo/03629_hentogsend.ipynb b/demo/03629_hentogsend.ipynb index a923948..9ca568f 100644 --- a/demo/03629_hentogsend.ipynb +++ b/demo/03629_hentogsend.ipynb @@ -14,7 +14,7 @@ "from statbank import StatbankClient\n", "\n", "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"BRUKERNAVN\")" + "statclient = StatbankClient()" ] }, { diff --git a/demo/214_mnr_hentogsend.ipynb b/demo/214_mnr_hentogsend.ipynb index 5590186..384b1df 100644 --- a/demo/214_mnr_hentogsend.ipynb +++ b/demo/214_mnr_hentogsend.ipynb @@ -15,7 +15,7 @@ "from io import StringIO\n", "\n", "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"BRUKERNAVN\")" + "statclient = StatbankClient()" ] }, { diff --git a/demo/312_stillnaring_csv.ipynb b/demo/312_stillnaring_csv.ipynb index c8833d1..1914a27 100644 --- a/demo/312_stillnaring_csv.ipynb +++ b/demo/312_stillnaring_csv.ipynb @@ -22,7 +22,7 @@ }, "outputs": [], "source": [ - "client = StatbankClient(\"BRUKERNAVN\")" + "client = StatbankClient()" ] }, { diff --git a/demo/312_stillnaring_fellesdaplalagring.ipynb b/demo/312_stillnaring_fellesdaplalagring.ipynb index e87869b..344d926 100644 --- a/demo/312_stillnaring_fellesdaplalagring.ipynb +++ b/demo/312_stillnaring_fellesdaplalagring.ipynb @@ -24,7 +24,7 @@ "outputs": [], "source": [ "fileclient = dp.FileClient()\n", - "statclient = StatbankClient(\"BRUKERNAVN\")" + "statclient = StatbankClient()" ] }, { diff --git a/demo/check_env_changes.ipynb b/demo/check_env_changes.ipynb deleted file mode 100644 index f893dae..0000000 --- a/demo/check_env_changes.ipynb +++ /dev/null @@ -1,41 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "id": "354dbc82-4a4d-41e4-a89a-a58d70fc709b", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [ - "from statbank.auth import StatbankAuth" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "b73970a3-b22f-4ab5-a3bd-635d692b07b2", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [ - "StatbankAuth()._build_user_agent()" - ] - } - ], - "metadata": { - "language_info": { - "codemirror_mode": { - "name": "ipython" - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -}