From 734b331b38c3a4dc191bf601ffeb3163dc395113 Mon Sep 17 00:00:00 2001 From: Vaayne Date: Mon, 13 Mar 2023 16:01:36 +0800 Subject: [PATCH] fix get spaces method --- notionai/notionai.py | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/notionai/notionai.py b/notionai/notionai.py index 17ad78a..eb16dfd 100644 --- a/notionai/notionai.py +++ b/notionai/notionai.py @@ -46,7 +46,8 @@ def _request(self, content: dict) -> str: self.url, json=payload, headers=headers, stream=self.stream ) - def _build_headers(self, token: str): + @classmethod + def _build_headers(cls, token: str): cookies = [ "token_v2=" + token, ] diff --git a/pyproject.toml b/pyproject.toml index 1ba36b6..703c8cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "notionai-py" description = "Unoffical Notion AI API" -version="0.1.1" +version="0.1.2" authors = [ { name="Vaayne", email="liu.vaayne@gmail.com" }, ]