koleo-cli 0.2.137.21__py3-none-any.whl → 0.2.137.22__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.
Potentially problematic release.
This version of koleo-cli might be problematic. Click here for more details.
- koleo/cli/train_info.py +2 -2
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/METADATA +1 -1
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/RECORD +7 -7
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/WHEEL +0 -0
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/entry_points.txt +0 -0
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/licenses/LICENSE +0 -0
- {koleo_cli-0.2.137.21.dist-info → koleo_cli-0.2.137.22.dist-info}/top_level.txt +0 -0
koleo/cli/train_info.py
CHANGED
|
@@ -33,7 +33,7 @@ class TrainInfo(BaseCli):
|
|
|
33
33
|
brands = await self.get_brands()
|
|
34
34
|
for calendar in train_calendars:
|
|
35
35
|
brand_obj = next(iter(i for i in brands if i["id"] == calendar["trainBrand"]), {})
|
|
36
|
-
link = f"https://koleo.pl/pociag/{brand_obj["name"]}/{name.replace(" ", "-",
|
|
36
|
+
link = f"https://koleo.pl/pociag/{brand_obj["name"]}/{name.replace(" ", "-", 1).replace(" ", "%20")}"
|
|
37
37
|
brand = brand_obj.get("logo_text", "")
|
|
38
38
|
self.print(
|
|
39
39
|
f"[red][link={link}]{brand}[/red] [bold blue]{calendar['train_nr']}{" "+ v if (v:=calendar.get("train_name")) else ""}[/bold blue]:[/link]"
|
|
@@ -96,7 +96,7 @@ class TrainInfo(BaseCli):
|
|
|
96
96
|
url_brand = await self.get_brand_by_shortcut(brand, name=train_details["train"]["train_full_name"])
|
|
97
97
|
|
|
98
98
|
link = (
|
|
99
|
-
f"https://koleo.pl/pociag/{url_brand}/{train_details["train"]["train_full_name"].replace(" ", "-",
|
|
99
|
+
f"https://koleo.pl/pociag/{url_brand}/{train_details["train"]["train_full_name"].replace(" ", "-", 1).replace(" ", "%20")}"
|
|
100
100
|
)
|
|
101
101
|
if date:
|
|
102
102
|
link += f"/{date}"
|
|
@@ -16,11 +16,11 @@ koleo/cli/connections.py,sha256=LJzoq3ADVUmBeqF4-h_me3pZbBHYg1sG3MaDYprwuLU,6873
|
|
|
16
16
|
koleo/cli/seats.py,sha256=h7pRWdeQ8frHD1ZuiGZO6UGQRboty9PtiVHg49lkw4Q,6337
|
|
17
17
|
koleo/cli/station_board.py,sha256=lRGIeEKEOvUcctM6cwmqVE7Yk9m9R12gfFZahlWLQFc,3669
|
|
18
18
|
koleo/cli/stations.py,sha256=6L3PBWc6xssyR9eeLacuvGBJmaY7Ny3DalKy2Xq7zsA,1633
|
|
19
|
-
koleo/cli/train_info.py,sha256=
|
|
19
|
+
koleo/cli/train_info.py,sha256=wWsbbvpNmm54_0FBvr_TEhhplhD8byKKYs_VvfpvOcs,7164
|
|
20
20
|
koleo/cli/utils.py,sha256=FzPGcJdwRwcz10mYiW63Y4zpjM9j6DzNH91UNR3MS8s,666
|
|
21
|
-
koleo_cli-0.2.137.
|
|
22
|
-
koleo_cli-0.2.137.
|
|
23
|
-
koleo_cli-0.2.137.
|
|
24
|
-
koleo_cli-0.2.137.
|
|
25
|
-
koleo_cli-0.2.137.
|
|
26
|
-
koleo_cli-0.2.137.
|
|
21
|
+
koleo_cli-0.2.137.22.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
22
|
+
koleo_cli-0.2.137.22.dist-info/METADATA,sha256=QQehYoUOPqA7BiVk7szVD7ZtBZ7vKqoWF0ClMndHITU,4731
|
|
23
|
+
koleo_cli-0.2.137.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
koleo_cli-0.2.137.22.dist-info/entry_points.txt,sha256=ouWbMR_XWpEwV7zfkFKeiFLe_IMP-47kTvVahgy4PRg,42
|
|
25
|
+
koleo_cli-0.2.137.22.dist-info/top_level.txt,sha256=AlWdXotkRYzHpFfOBYi6xOXl1H0zq4-tqtZ2XivoWB4,6
|
|
26
|
+
koleo_cli-0.2.137.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|