goodmap 1.1.3__tar.gz → 1.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {goodmap-1.1.3 → goodmap-1.1.4}/PKG-INFO +1 -1
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/data_models/location.py +5 -2
- {goodmap-1.1.3 → goodmap-1.1.4}/pyproject.toml +2 -2
- {goodmap-1.1.3 → goodmap-1.1.4}/LICENSE.md +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/README.md +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/__init__.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/config.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/core.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/core_api.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/data_validator.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/db.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/formatter.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/goodmap.py +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/templates/goodmap-admin.html +0 -0
- {goodmap-1.1.3 → goodmap-1.1.4}/goodmap/templates/map.html +0 -0
|
@@ -6,7 +6,6 @@ from pydantic import BaseModel, Field, create_model, field_validator
|
|
|
6
6
|
class LocationBase(BaseModel, extra="allow"):
|
|
7
7
|
position: tuple[float, float]
|
|
8
8
|
uuid: str
|
|
9
|
-
remark: str = ""
|
|
10
9
|
|
|
11
10
|
@field_validator("position")
|
|
12
11
|
@classmethod
|
|
@@ -18,7 +17,11 @@ class LocationBase(BaseModel, extra="allow"):
|
|
|
18
17
|
return v
|
|
19
18
|
|
|
20
19
|
def basic_info(self):
|
|
21
|
-
return {
|
|
20
|
+
return {
|
|
21
|
+
"uuid": self.uuid,
|
|
22
|
+
"position": self.position,
|
|
23
|
+
"remark": bool(getattr(self, "remark", False)),
|
|
24
|
+
}
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
def create_location_model(obligatory_fields: list[tuple[str, Type[Any]]]) -> Type[BaseModel]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "goodmap"
|
|
3
|
-
version = "1.1.
|
|
3
|
+
version = "1.1.4"
|
|
4
4
|
description = "Map engine to serve all the people :)"
|
|
5
5
|
authors = ["Krzysztof Kolodzinski <krzysztof.kolodzinski@problematy.pl>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -119,7 +119,7 @@ dist_glob_patterns = ["dist/*"]
|
|
|
119
119
|
upload_to_vcs_release = true
|
|
120
120
|
|
|
121
121
|
[tool.interrogate]
|
|
122
|
-
fail-under =
|
|
122
|
+
fail-under = 28
|
|
123
123
|
ignore-init-method = true
|
|
124
124
|
ignore-init-module = true
|
|
125
125
|
ignore-magic = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|