Skip to content

Commit

Permalink
feat: fix queueBed value
Browse files Browse the repository at this point in the history
  • Loading branch information
hendraaagil committed Jul 10, 2021
1 parent 42d08d5 commit f054778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>RS Bed Covid API</h1>
</ul>
<strong style="margin-left:25px;">NB: </strong><span>Untuk melihat daftar id provinsi, Anda bisa menggunakan <strong>API get provinces</strong> terlebih dahulu.</span>
<br>
<strong style="margin-left:25px;">NB: </strong><span>Untuk melihat daftar id kota atau kecamatan, Anda bisa menggunakan <strong>API get cities terlebih dahulu</strong> terlebih dahulu.</span>
<strong style="margin-left:25px;">NB: </strong><span>Untuk melihat daftar id kota atau kecamatan, Anda bisa menggunakan <strong>API get cities</strong> terlebih dahulu.</span>
<br>
<strong style="margin-left:25px;">NB: </strong><span>Query string type memiliki 2 optional value: <strong>1</strong> untuk covid dan <strong>2</strong> untuk non-covid</span>
<br>
Expand Down
2 changes: 1 addition & 1 deletion src/scrape/bed-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const getBedDetail = async (
.trim()
const queueBed: number = +$(el)
.find(
".card > .card-body > .row > .col-md-6.col-12:nth-child(2) .col-md-4.col-4:nth-child(2) > div.text-center.pt-1.pb-1 > div:nth-child(3)",
".card > .card-body > .row > .col-md-6.col-12:nth-child(2) .col-md-4.col-4:nth-child(3) > div.text-center.pt-1.pb-1 > div:nth-child(2)",
)
.text()
.trim()
Expand Down

0 comments on commit f054778

Please sign in to comment.