Skip to content

Commit

Permalink
Merge pull request #4 from hendraaagil/main
Browse files Browse the repository at this point in the history
fix: Fix bug in queue bed detail API
  • Loading branch information
satyawikananda authored Jul 10, 2021
2 parents 42d08d5 + f054778 commit 8448501
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

1 comment on commit 8448501

@vercel
Copy link

@vercel vercel bot commented on 8448501 Jul 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.