maps4fs 1.8.230__py3-none-any.whl → 1.8.231__py3-none-any.whl

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.
maps4fs/generator/map.py CHANGED
@@ -87,8 +87,9 @@ class Map:
87
87
  "rotation": rotation,
88
88
  "dtm_provider": dtm_provider.name(),
89
89
  "custom_osm": bool(custom_osm),
90
- "is_public": self.is_session_public(),
90
+ "is_public": kwargs.get("is_public", False),
91
91
  }
92
+ print(main_settings)
92
93
  send_main_settings(main_settings)
93
94
  except Exception as e:
94
95
  self.logger.error("Error sending main settings: %s", e)
@@ -348,18 +349,3 @@ class Map:
348
349
  self.logger.error("Error getting country name by coordinates: %s", e)
349
350
  return "Unknown"
350
351
  return "Unknown"
351
-
352
- def is_session_public(self) -> bool | str:
353
- """Check if the session is public.
354
-
355
- Returns:
356
- bool: True if the session is public, False otherwise.
357
- If an error occurs, returns "Unknown".
358
- """
359
- try:
360
- from webui.config import is_public
361
-
362
- return is_public()
363
- except Exception as e:
364
- self.logger.error("Error checking if the session is public: %s", e)
365
- return "Unknown"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: maps4fs
3
- Version: 1.8.230
3
+ Version: 1.8.231
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ maps4fs/logger.py,sha256=HQrDyj72mUjVYo25aR_-_SxVn2rfFjDCNbj-JKJdSnE,1488
3
3
  maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
4
4
  maps4fs/generator/dem.py,sha256=a9B3tatj7pzvvdLIyLw7BA3JoDTibFczpqiXJnx054U,12864
5
5
  maps4fs/generator/game.py,sha256=NZaxj5z7WzMiHzAvQyr-TvVjGoHgqGldM6ZsItuYyzA,11292
6
- maps4fs/generator/map.py,sha256=VNWgrfikw4yS4iLlk35RiM5_rRmysORB9OrOA0LIpC8,13104
6
+ maps4fs/generator/map.py,sha256=Tn33S8e7a2guvpjr1_GCpYIQFAz-ekkEUAobS02i6Xo,12669
7
7
  maps4fs/generator/qgis.py,sha256=Es8hLuqN_KH8lDfnJE6He2rWYbAKJ3RGPn-o87S6CPI,6116
8
8
  maps4fs/generator/settings.py,sha256=d3NaMpyFh-IZWtHV2UQMMqUfuPP76lv7mIN2d7mORqA,6747
9
9
  maps4fs/generator/statistics.py,sha256=JfhiGDZf2-VoWZbL-Kikzv4_DqerYwKcseccVL9qzXo,1783
@@ -53,8 +53,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
53
53
  maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
54
54
  maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
55
55
  maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
56
- maps4fs-1.8.230.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
57
- maps4fs-1.8.230.dist-info/METADATA,sha256=9CU9k4wDvJ7c05NbvCm2f6GB7oT9WqhijD1qRD7uelI,45770
58
- maps4fs-1.8.230.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
- maps4fs-1.8.230.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
60
- maps4fs-1.8.230.dist-info/RECORD,,
56
+ maps4fs-1.8.231.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
57
+ maps4fs-1.8.231.dist-info/METADATA,sha256=MxaS-z4S5AOoI7BRem0WBnxWpK7JlvijIcopSntdkeU,45770
58
+ maps4fs-1.8.231.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
+ maps4fs-1.8.231.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
60
+ maps4fs-1.8.231.dist-info/RECORD,,