tangled
alpha
login
or
join now
zenfyr.dev
/
xpost
2
fork
atom
social media crossposting tool. 3rd time's the charm
mastodon
misskey
crossposting
bluesky
2
fork
atom
overview
issues
1
pulls
pipelines
fix: traverse lists in read_env
zenfyr.dev
1 month ago
16b45694
ec13e8e1
verified
This commit was signed with the committer's
known signature
.
zenfyr.dev
SSH Key Fingerprint:
SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE=
1/1
run-tests.yml
success
12s
+11
-3
1 changed file
expand all
collapse all
unified
split
util
util.py
+11
-3
util/util.py
reviewed
···
21
21
22
22
return url[:-1] if url.endswith("/") else url
23
23
24
24
+
def _read_env(data: Any) -> None:
25
25
+
match data:
26
26
+
case dict():
27
27
+
read_env(data)
28
28
+
case list():
29
29
+
for v in data:
30
30
+
_read_env(v)
31
31
+
case _:
32
32
+
pass
33
33
+
24
34
25
35
def read_env(data: dict[str, Any]) -> None:
26
36
keys = list(data.keys())
···
34
44
del data[key]
35
45
else:
36
46
data[key] = envval
37
37
-
case dict():
38
38
-
read_env(val)
39
47
case _:
40
40
-
pass
48
48
+
_read_env(val)