Skip to content

Commit 576a0ba

Browse files
authored
Merge pull request #16 from docentYT/development
v1.0.1
2 parents d0bc7bb + b35c704 commit 576a0ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.1]
9+
### Fixed
10+
- `api.notes.create()` created only anonymous notes.
11+
812
## [1.0.0]
913
### Added
1014
- `to_xml()` method in `OsmChange`.

src/osm_easy_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.1"
22

33
from .data_classes import *
44
from .diff import Diff, Frequency

src/osm_easy_api/api/endpoints/notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def create(self, latitude: str, longitude: str, text: str) -> Note:
127127
"""
128128
generator = self.outer._post_generator(
129129
url=self.outer._url.note["create"].format(latitude=latitude, longitude=longitude, text=text),
130-
auth_requirement=self.outer._Requirement.NO,
130+
auth_requirement=self.outer._Requirement.OPTIONAL,
131131
auto_status_code_handling=True)
132132

133133
return self._xml_to_note(generator)[0]

0 commit comments

Comments
 (0)