Browse Source

Fixed missed references

tags/2.0.6
Teknikode 3 years ago
parent
commit
d425b42694
1 changed files with 0 additions and 16 deletions
  1. 0
    16
      Teknik/Areas/Transparency/Controllers/TransparencyController.cs

+ 0
- 16
Teknik/Areas/Transparency/Controllers/TransparencyController.cs View File

@@ -29,22 +29,6 @@ namespace Teknik.Areas.Transparency.Controllers

if (Config.TransparencyConfig.Enabled)
{
Upload.Models.Upload upload = db.Uploads.OrderByDescending(u => u.UploadId).FirstOrDefault();
model.UploadCount = (upload != null) ? upload.UploadId : 0;
model.UploadSize = (upload != null) ? db.Uploads.Sum(u => (long)u.ContentLength) : 0;

Paste.Models.Paste paste = db.Pastes.OrderByDescending(p => p.PasteId).FirstOrDefault();
model.PasteCount = (paste != null) ? paste.PasteId : 0;

Users.Models.User user = db.Users.OrderByDescending(u => u.UserId).FirstOrDefault();
model.UserCount = (user != null) ? user.UserId : 0;

Shortener.Models.ShortenedUrl url = db.ShortenedUrls.OrderByDescending(s => s.ShortenedUrlId).FirstOrDefault();
model.ShortenedUrlCount = (url != null) ? url.ShortenedUrlId : 0;

Vault.Models.Vault vault = db.Vaults.OrderByDescending(v => v.VaultId).FirstOrDefault();
model.VaultCount = (url != null) ? vault.VaultId : 0;

model.TotalNet = new Dictionary<string, double>();

var billSums = db.Transactions.OfType<Bill>().GroupBy(b => b.Currency).Select(b => new { currency = b.Key, total = b.Sum(c => c.Amount) }).ToList();

Loading…
Cancel
Save