Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #278 from covid19-miyazaki/ticket-277-fix-scraping…
Browse files Browse the repository at this point in the history
…-positive-patient

closed #277 fix scraping positive patient
  • Loading branch information
korosuke613 authored Aug 2, 2020
2 parents d903f49 + a381f4c commit 40f5a98
Show file tree
Hide file tree
Showing 5 changed files with 1,498 additions and 183 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/news_scraping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: steps.cpr.outputs.pr_number != 0
- name: Scraping Data
env:
URL: "https://www.pref.miyazaki.lg.jp/kenko/hoken/kansensho/covid19/hassei.html"
URL: "https://www.pref.miyazaki.lg.jp/kansensho-taisaku/covid-19/hassei_list.html"
SELENIUM_HOST: localhost
TZ: Asia/Tokyo
run: |
Expand Down
53 changes: 15 additions & 38 deletions components/ConfirmedCasesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
</div>
</div>
<ul class="group">
<li class="item in-hospital">
<div class="gutter oneThird">
<li class="item deceased">
<div class="gutter">
<div class="box">
<t-i18n>{{ $t('入院中') }}</t-i18n>
<span>
Expand All @@ -36,32 +36,17 @@
</span>
</div>
</div>
<ul class="group">
<li class="item mild">
<div class="gutter">
<div class="box short">
<!-- eslint-disable vue/no-v-html-->
<span v-html="$t('軽症・<br />中等症')" />
<!-- eslint-enable vue/no-v-html-->
<span>
<b>{{ 軽症中等症 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
<li class="item serious">
<div class="gutter">
<div class="box short">
<t-i18n>{{ $t('重症') }}</t-i18n>
<span>
<b>{{ 重症 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
</ul>
</li>
<li class="item deceased">
<div class="gutter">
<div class="box">
<t-i18n>{{ $t('宿泊療養中') }}</t-i18n>
<span>
<b>{{ 宿泊療養中 }}</b>
<t-i18n class="unit">{{ $t('人') }}</t-i18n>
</span>
</div>
</div>
</li>
<li class="item deceased">
<div class="gutter">
Expand Down Expand Up @@ -97,15 +82,7 @@ export default {
components: {
TI18n
},
props: [
'検査実施人数',
'陽性者数',
'入院中',
'軽症中等症',
'重症',
'死亡',
'退院'
],
props: ['検査実施人数', '陽性者数', '入院中', '宿泊療養中', '死亡', '退院'],
methods: {
/** 桁数に応じて位置の調整をする */
getAdjustX(input) {
Expand Down Expand Up @@ -277,7 +254,7 @@ export default {
width: 200%;
}
.item.recovered > .gutter > .box::before {
width: 520%;
width: 400%;
}
@function px2vw($px, $vw) {
Expand Down
Loading

0 comments on commit 40f5a98

Please sign in to comment.