debugging by writing to console
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-02-09 15:07:16 +01:00
parent aa2b07ddc1
commit 605658c13c
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ namespace hanyadikhetvan.Controllers
[HttpGet] [HttpGet]
public HanyadikHetVan Get() public HanyadikHetVan Get()
{ {
Console.WriteLine(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")));
return new HanyadikHetVan(); return new HanyadikHetVan();
} }
} }

View File

@ -7,6 +7,6 @@ namespace hanyadikhetvan
{ {
public class HanyadikHetVan public class HanyadikHetVan
{ {
public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse("2020-02-08")).Days / 7; public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7;
} }
} }