Skip to content

Commit

Permalink
Release v3.1.50-20240424141333
Browse files Browse the repository at this point in the history
  • Loading branch information
esitarski committed Apr 24, 2024
2 parents bc47f5f + abadf68 commit fd89a6e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/devbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Python environment
uses: actions/setup-python@v5
with:
python-version: 3.9.*
python-version: 3.10.*
- name: Checkout code
#uses: actions/checkout@master
uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions CrossMgrLocale/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,14 @@ msgstr "Nom2:"
msgid "Bib"
msgstr "Dossard"

#: Setup.py
msgid "Early Bell Time"
msgstr "Heure de cloche anticipée"

#: Setup.py
msgid "Early Bell"
msgstr "Cloche anticipée"

#: EditEntry.py:404
msgid "Clock Time"
msgstr "Temps d'horloge"
Expand Down
1 change: 1 addition & 0 deletions GetResults.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def _GetResultsCore( category ):
# Apply the early bell time. Early bell time signifies the beginning of the last lap for all riders.
if riderCategory.earlyBellTime and not race.isTimeTrial and times:
try:
# While a not-last lap starts after earlyBellTime, delete the last lap.
while times[-3] >= riderCategory.earlyBellTime: # This is confusing. Don't change it!
times.pop()
interp.pop()
Expand Down
10 changes: 7 additions & 3 deletions RaceHUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def drawTooSmall():
dc.DrawBitmap( self.checkeredFlag, x - self.checkeredFlag.GetWidth() - 1, round(yTop + hMiddle - self.checkeredFlag.GetHeight() / 2), False )
dc.DrawText( tCur, round(x - textWidth - textHeight / 8), round(yTop + hMiddle - tickHeight - textHeight) )

# Draw broom.
# Draw the broom.
t = raceTimes[-1]
tCur = Utils.formatTime( t )
textWidth, textHeight = dc.GetTextExtent( tCur )
Expand All @@ -300,8 +300,12 @@ def drawTooSmall():
except (TypeError, IndexError):
ebt = None
if ebt:
x = xLeft + int( ebt * xMult )
dc.DrawBitmap( self.bell, round(x), round(yTop + hMiddle - self.bell.GetHeight()*1.5) )
x = round(xLeft + ebt * xMult )
dc.DrawBitmap( self.bell, x, round(yTop + hMiddle - self.bell.GetHeight()*1.5) )
penSave = dc.GetPen()
dc.SetPen( wx.Pen(wx.Colour(220,0,0), 3) )
dc.DrawLine( x, round(yTop + hMiddle - tickHeight), x, round(yTop + hMiddle + tickHeight) )
dc.SetPen( penSave )

ctx.SetPen( wx.BLACK_PEN )

Expand Down

0 comments on commit fd89a6e

Please sign in to comment.