Skip to content

Commit

Permalink
new return format
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJim1013 committed Jun 16, 2020
1 parent c4f7958 commit 6ce51db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Cov19Inf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,17 @@ def get_cov_data_info():
dead=str(globalStats['dead'])

domesticStats_data=[
{
"dataone":["累计确诊","累计治愈","现有疑似","累计死亡"],
"datatwo":[diagnosed,cured,suspect,death],
"datathree":["现有确诊","无症状感染者","境外输入","现有重症"],
"datafour":[currentConfirmedCount,noInfectCount,importedCount,seriousCount],
"datatime":times
},
{
"dataone":["现有确诊","累计确诊","累计治愈","累计死亡"],
"datatwo":[nowConfirm,confirm,heal,dead],
"datatime":times
}
[
["累计确诊","累计治愈","现有疑似","累计死亡"],
[diagnosed,cured,suspect,death],
["现有确诊","无症状感染者","境外输入","现有重症"],
[currentConfirmedCount,noInfectCount,importedCount,seriousCount],
],
[
["现有确诊","累计确诊","累计治愈","累计死亡"],
[nowConfirm,confirm,heal,dead],
],
times
]
jsondata = json.dumps(domesticStats_data)

Expand Down
Binary file modified __pycache__/Cov19Inf.cpython-38.pyc
Binary file not shown.

0 comments on commit 6ce51db

Please sign in to comment.