Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix bug in queue bed detail API #4

Merged
merged 1 commit into from
Jul 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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