Skip to content

Commit

Permalink
Rank todo
Browse files Browse the repository at this point in the history
  • Loading branch information
PetersenPt committed Apr 7, 2024
1 parent 743c5a9 commit ff13df8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 0 additions & 18 deletions DARASA/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,6 @@
async (Darasadb db) => await db.GameEnterpriseAdvertAppearances.ToListAsync()).WithOpenApi();
app.MapGet("/users", async (Darasadb db) => await db.Users.ToListAsync()).WithOpenApi();

// app.MapGet("/weatherforecast", () =>
// {
// var forecast = Enumerable.Range(1, 5).Select(index =>
// new WeatherForecast
// (
// DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
// Random.Shared.Next(-20, 55),
// summaries[Random.Shared.Next(summaries.Length)]
// ))
// .ToArray();
// return forecast;
// })
// .WithName("GetWeatherForecast")
// .WithOpenApi();

app.Run();

record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
{
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
18 changes: 18 additions & 0 deletions DARASA/Rank.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using DARASA.DB;
using Microsoft.EntityFrameworkCore;

namespace DARASA;

public class Rank
{
public void RankMonthlyBiz(Darasadb db)
{
//TODO: Rank enterprises with the games.
// gets all enterprises that have donated to CASA (active enterprise adverts)
// gets all active games
// Ranks enterprises with the ones that haven't appeared last months adverts first (gameEnterpriseAdvertAppearence)
// ranks enterprise that have appeared after.
// if there aren't enough games for enterprises these pass to the next month as first

}
}

0 comments on commit ff13df8

Please sign in to comment.