Skip to content

Commit 049861f

Browse files
committed
Add time to database version
1 parent cdd9e8f commit 049861f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ The OpenRocket client (and other interested 3rd parties) can access the live dat
3535

3636
### Manifest Format
3737
The `metadata.json` structure is defined as follows:
38+
`database_version` is a sortable timestamp in `YYYYMMDDHHMMSS` format.
3839
```json
3940
{
4041
"schema_version": 1,
41-
"database_version": 20251225,
42+
"database_version": 20251225140000,
4243
"generated_at": "2025-12-25T14:00:00.000000",
4344
"motor_count": 1033,
4445
"sha256": "a1b2c3d4e5f6...",

scripts/build_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def build():
217217

218218
meta = {
219219
"schema_version": 1,
220-
"database_version": int(datetime.now().strftime("%Y%m%d")),
220+
"database_version": int(datetime.now().strftime("%Y%m%d%H%M%S")),
221221
"generated_at": datetime.now().isoformat(),
222222
"motor_count": motor_count,
223223
"sha256": sha256.hexdigest(),
@@ -231,4 +231,4 @@ def build():
231231

232232

233233
if __name__ == "__main__":
234-
build()
234+
build()

0 commit comments

Comments
 (0)