keep it simple
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-02-09 15:56:13 +01:00
parent 92d2dabaf8
commit c461f0461d
3 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,6 @@ namespace hanyadikhetvan.Controllers
[HttpGet] [HttpGet]
public HanyadikHetVan Get() public HanyadikHetVan Get()
{ {
_logger.LogWarning(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")).ToString());
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(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7; public int HanyadikHet => (DateTime.Now - (DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")))).Days / 7;
} }
} }

View File

@ -22,6 +22,7 @@
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "swagger",
"environmentVariables": { "environmentVariables": {
"HANYADIKHET_STARTDATE": "2021-02-08",
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"dotnetRunMessages": "true", "dotnetRunMessages": "true",