Skip to content

Commit

Permalink
Support initial rfid options
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbl4 committed Aug 24, 2023
1 parent 7bb2f53 commit 94d6144
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions DataService/Options/ServiceOptions.cs

This file was deleted.

1 change: 0 additions & 1 deletion DataService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
using Newtonsoft.Json.Converters;
using NJsonSchema;
using NJsonSchema.Generation.TypeMappers;
using ServiceOptions = maxbl4.Race.DataService.Options.ServiceOptions;

namespace maxbl4.Race.DataService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {DateTime, Duration} from "luxon";
(click)="refreshRating()">
<i class="material-icons">refresh</i>Пересчитать
</button>
Начало: {{timingSessionDto.startTime?.toFormat("HH:MM:ss")}}
Начало: {{timingSessionDto.startTime?.toFormat("HH:mm:ss")}}
Осталось: {{durationLeft}}
Обновлено: {{update?.updated?.toFormat("HH:mm:ss")}}
<form (submit)="appendRiderId()" *ngIf="timingSessionDto.isRunning">
Expand Down Expand Up @@ -158,7 +158,8 @@ export class TimingSessionViewComponent implements OnInit {

get durationLeft(): string{
if (this.timingSessionDto.startTime && this.sessionDto.finishCriteria?.duration) {
const elapsed = DateTime.now().diff(this.timingSessionDto?.startTime);
const now = this.timingSessionDto.isRunning ? DateTime.now() : this.timingSessionDto.stopTime!;
const elapsed = now.diff(this.timingSessionDto.startTime);
if (elapsed.as('seconds') > this.sessionDto.finishCriteria.duration.as('seconds')) {
return "-" + elapsed.plus(this.sessionDto.finishCriteria.duration.negate()).toFormat("hh:mm:ss");
}else
Expand Down
2 changes: 1 addition & 1 deletion DataService/publish-docker.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#1.0.5
#1.0.6

function Main()
{
Expand Down

0 comments on commit 94d6144

Please sign in to comment.