Skip to content

Commit

Permalink
Merge pull request #659 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: code cleanup
  • Loading branch information
ychung-mot authored Sep 18, 2024
2 parents 895e28f + 10f1531 commit 6b0b444
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/StrDss.Service/RentalListingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public async Task CreateRentalListingExportFiles()
var lg = string.Empty;

var stopWatchForAll = Stopwatch.StartNew();
//var stopWatch = Stopwatch.StartNew();

var currentMonth = DateUtils.ConvertUtcToPacificTime(new DateTime(currentTime.Year, currentTime.Month, 1)).AddDays(-1).ToString("yyyy-MM");

Expand Down Expand Up @@ -175,8 +174,6 @@ public async Task CreateRentalListingExportFiles()
{
prExport.Add(line);
}

//LogProgress(count, totalCount, stopWatch);
}

await CreateFinalExports(allExport, prExport, lgExport, lg, lgId);
Expand Down Expand Up @@ -205,15 +202,6 @@ private async Task ProcessExportForLocalGovernment(List<string> export, long org
}
}

private void LogProgress(int count, int totalCount, Stopwatch stopWatch)
{
if (count % 10 == 0)
{
_logger.LogInformation($"Rental Listing Export - {count}/{totalCount} - {stopWatch.Elapsed.TotalSeconds} seconds ");
stopWatch.Restart();
}
}

private async Task CreateFinalExports(List<string> allExport, List<string> prExport, List<string> lgExport, string lg, long lgId)
{
var date = DateUtils.ConvertUtcToPacificTime(DateTime.UtcNow).ToString("yyyyMMdd");
Expand Down

0 comments on commit 6b0b444

Please sign in to comment.