Skip to content

Commit

Permalink
Workaround saat ambil lebih dari 1 hari
Browse files Browse the repository at this point in the history
  • Loading branch information
wildangunawan committed Feb 1, 2021
1 parent a0e4526 commit 28ac87c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions get-data-harian-emiten.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
'non_regular_frequency': [],
})

# hk -> hari kerja
hk_terakhir = history.tail(1)
hk_terakhir = hk_terakhir['date'].item()

# data-data
date = []
previous = []
Expand Down Expand Up @@ -111,7 +107,7 @@
# simpan data-data
for data in result["replies"][::-1]:
# hari kerja?
if data['Date'] != hk_terakhir:
if data['Date'] not in history.date.values:
# ya
date.append(data['Date'])
previous.append(data['Previous'])
Expand Down

0 comments on commit 28ac87c

Please sign in to comment.