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

Historical data param, git tagName #36

Merged
merged 7 commits into from
Dec 2, 2024
Merged

Conversation

handstandsam
Copy link
Collaborator

No description provided.

@handstandsam handstandsam force-pushed the historical-data-param branch from 22cee8d to 84e1ce6 Compare December 2, 2024 14:50
Comment on lines +10 to +18
if (this < 1000) {
return this.toString()
} else {
return toString()
.reversed()
.chunked(3)
.joinToString(",")
.reversed()
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isn't related to this change, but helped prevent a , for numbers like 999.

Comment on lines +97 to +109
val historicalDataFile: File? = historicalDataFileProperty.orNull?.let { File(it) }
val historicalData: List<HistoricalData> =
if (historicalDataFile?.isFile == true && historicalDataFile.length() > 0) {
try {
val fileContents = historicalDataFile.readText()
InvertJson.decodeFromString(ListSerializer(HistoricalData.serializer()), fileContents)
} catch (e: Exception) {
invertLogger().warn("Failed to read historical data file: $e")
listOf()
}
} else {
listOf()
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Parses in the historical data to be included.

@handstandsam handstandsam changed the title Historical data param Historical data param, git tagName Dec 2, 2024
@handstandsam handstandsam marked this pull request as ready for review December 2, 2024 16:47
@handstandsam handstandsam merged commit 016876c into main Dec 2, 2024
1 check passed
@handstandsam handstandsam deleted the historical-data-param branch December 2, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant