Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77a36b1

Browse files
authored
Update json output
1 parent8530ab1 commit77a36b1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎.github/scripts/tx_stat.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@
2626
total=total+resourse['attributes']['total_strings']
2727

2828
p='{:.2%}'.format(translated/total)
29-
30-
withopen(".stat.json","w")astext_file:
31-
text_file.write(json.dumps({'translation':p}))
29+
print(json.dumps({'translation':p}))

‎.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
-name:build
4242
run:.github/scripts/build.sh
4343
-name:stat
44-
run:cd ../docs &&python ../.github/scripts/tx_stat.py
44+
run:python .github/scripts/tx_stat.py > ../docs/.stat.json
4545
env:
4646
TX_TOKEN:${{ secrets.TRANSIFEX_APIKEY }}
4747
TX_PROJECT:${{ inputs.tx_project }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp