From 9525cd8ec15b5dc8b81b5ce63073b551a3c6e27c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 4 Jan 2024 16:24:37 +0100 Subject: [PATCH] Looks mandatory now. --- helloasso_to_discourse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloasso_to_discourse.py b/helloasso_to_discourse.py index d4807f0..9614d80 100644 --- a/helloasso_to_discourse.py +++ b/helloasso_to_discourse.py @@ -66,7 +66,7 @@ class Discourse: def __enter__(self): self.session = requests.Session() - self.session.headers.update({"Api-Key": self.api_key}) + self.session.headers.update({"Api-Key": self.api_key, "Api-Username": "system"}) return self def __exit__(self, exc_type, exc_value, traceback):