Skip to content

Commit

Permalink
Shorten the period for update
Browse files Browse the repository at this point in the history
  • Loading branch information
corytu committed Sep 8, 2018
1 parent 0878880 commit 5104c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/crawler.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (!file.exists("data/last_crawled_time.R")) {
source("data/last_crawled_time.R")
}

if (Sys.time() - last_crawled > as.difftime(4, units = "hours")) {
if (Sys.time() - last_crawled > as.difftime(30, units = "mins")) {
# ------ Get currency data
# Take the urls and make sure their retrieving methods (all GET here)
cur.url <- list(usd = "http://rate.bot.com.tw/xrt/quote/ltm/USD",
Expand Down

0 comments on commit 5104c7d

Please sign in to comment.