Skip to content

Commit

Permalink
Merge pull request #6 from philosowaffle/master
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
anlesk authored Feb 13, 2024
2 parents e9ba924 + 0ccf8e6 commit d435225
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions PelotonToGarmin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution", ".solution", "{
configuration.example.json = configuration.example.json
deviceInfo.sample.xml = deviceInfo.sample.xml
README.md = README.md
vNextReleaseNotes.md = vNextReleaseNotes.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{A7F642D9-7954-4547-84DB-67A04AE1043D}"
Expand Down
2 changes: 1 addition & 1 deletion mkdocs/docs/configuration/peloton.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The Peloton Settings provide settings related to how P2G should fetch workouts f
| Email | **yes** | `null` | Your Peloton email used to sign in |
| Password | **yes** | `null` | Your Peloton password used to sign in. **Note: Does not support `\` character in password** |
| NumWorkoutsToDownload | no | 5 | The default number of workouts to download. See [choosing number of workouts to download](#choosing-number-of-workouts-to-download). Set this to `0` if you would like P2G to prompt you each time for a number to download. |
| ExcludeWorkoutTypes | no | none | A comma separated list of workout types that you do not want P2G to download/convert/upload. [Read more...](#exclude-workout-types) |
| ExcludeWorkoutTypes | no | none | An array of workout types that you do not want P2G to download/convert/upload. [Read more...](#exclude-workout-types) |

## Choosing Number of Workouts To Download

Expand Down
7 changes: 5 additions & 2 deletions src/Api.Service/ApiStartupServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ namespace SharedStartup;
public static class ApiStartupServices
{
public static void ConfigureP2GApiServices(this IServiceCollection services)
{
// CACHE
{
// HOSTED SERVICES
services.AddHostedService<BackgroundSyncJob>();

// CACHE
services.AddSingleton<IMemoryCache, MemoryCache>();

// CONVERT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Common;
using Common.Database;
using Common.Database;
using Common.Dto;
using Common.Observe;
using Common.Service;
using Common.Stateful;
using Microsoft.Extensions.Hosting;
using Prometheus;
using Sync;
using static Common.Observe.Metrics;
Expand Down
1 change: 1 addition & 0 deletions vNextReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Fixes

- [#604] Fix workout title template not handling special characters correctly
- [#634] WebUI - Periodic Sync not working

## Docker Tags

Expand Down

0 comments on commit d435225

Please sign in to comment.