mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
output date string as well
This commit is contained in:
@@ -113,9 +113,9 @@ s32 is_drumstick_unlocked(void) {
|
||||
}
|
||||
```
|
||||
|
||||
<!-- README_SCORE_BEGIN -->
|
||||
As of October 3rd, 2022, this is our current score:
|
||||
```
|
||||
<!-- README_SCORE_BEGIN -->
|
||||
==========================================
|
||||
ADVENTURE ONE (ASM -> C Decompilation)
|
||||
------------ 33.19% Complete -------------
|
||||
@@ -139,8 +139,8 @@ As of October 3rd, 2022, this is our current score:
|
||||
------------------------------------------
|
||||
We are racing in Ancient Lake. (Lap 1/3)
|
||||
==========================================
|
||||
<!-- README_SCORE_END -->
|
||||
```
|
||||
<!-- README_SCORE_END -->
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -5,12 +5,15 @@ if [[ $1 == '--update-readme' ]]; then
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
BEGIN='<!-- README_SCORE_BEGIN -->'
|
||||
END='<!-- README_SCORE_END -->'
|
||||
from datetime import datetime
|
||||
|
||||
BEGIN = '<!-- README_SCORE_BEGIN -->'
|
||||
END = '<!-- README_SCORE_END -->'
|
||||
DATE_STR = datetime.now().strftime('As of %B %-d, %Y, this is our current score:')
|
||||
print(
|
||||
re.sub(
|
||||
fr'(?s).{BEGIN}.*{END}',
|
||||
f'\n{BEGIN}\n{os.environ["NEW_SCORE"]}\n{END}',
|
||||
f'\n{BEGIN}\n{DATE_STR}\n```\n{os.environ["NEW_SCORE"]}\n```\n{END}',
|
||||
open('README.md', 'r').read()
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user