Skip to content

Commit

Permalink
+ update file template
Browse files Browse the repository at this point in the history
  • Loading branch information
PegasisForever committed Mar 2, 2020
1 parent bc279f2 commit e53c6b7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/site/pegasis/ta/fetch/modes/server/storage/InitFiles.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ fun initFiles() {
"notification": false,
"auto_update": false,
"auto_update_interval_minute": 40,
"auto_update_interval_exceptions": [
{
"start": "00:00:00",
"end": "06:00:00",
"interval": 120
},
{
"start": "18:00:00",
"end": "23:59:59",
"interval": 120
}
],
"ignore_last_update_done": false,
"web_driver_path": "web/driver/path/here",
"fetch_timeout_second": 100,
"cp_min_chrome_count": 3,
Expand All @@ -25,7 +38,8 @@ fun initFiles() {
}
""".trimIndent().writeToFile("data/config.json")
"[]".writeToFile("data/users.json")
"{}".writeToFile("data/lastUpdateTime.json")
"{}".writeToFile("data/lastUserUpdateTime.json")
"{}".writeToFile("data/webdriverFallbackMap.json")
"".writeToFile("data/announcement.txt")
"".writeToFile("data/lastUpdateDoneTime.time")
}

0 comments on commit e53c6b7

Please sign in to comment.