Skip to content

Commit 2333986

Browse files
committed
update version, remove silly function
1 parent 17fc9b0 commit 2333986

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "PyTrilium"
7-
version = "1.1.5"
7+
version = "1.2.0"
88
authors = [
99
{ name="perfectra1n", email="[email protected]" },
1010
]

pytrilium/PyTriliumClient.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def make_requests_session(self) -> None:
4848
self.session = requests.Session()
4949

5050
# Version here
51-
self.session.headers.update({"User-Agent": f"pytrilium/{self.get_version()}"})
51+
self.session.headers.update({"User-Agent": "pytrilium/1.2.0"})
5252
#self.session.headers.update({"Content-Type": "application/json"})
5353

5454
# Set up retry logic
@@ -144,13 +144,3 @@ def get_pyproject_toml(self) -> dict:
144144
import toml
145145
with open("pyproject.toml", "r") as f:
146146
return toml.load(f)
147-
148-
def get_version(self) -> str:
149-
"""Gets the version of the PyTriliumClient.
150-
151-
Returns
152-
-------
153-
str
154-
The version of the PyTriliumClient.
155-
"""
156-
return self.get_pyproject_toml()["project"]["version"]

0 commit comments

Comments
 (0)