File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " PyTrilium"
7- version = " 1.1.5 "
7+ version = " 1.2.0 "
88authors = [
99 {
name =
" perfectra1n" ,
email =
" [email protected] " },
1010]
Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments