aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Services/ModelService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/api/Services/ModelService.cs')
-rw-r--r--backend/api/api/Services/ModelService.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/api/api/Services/ModelService.cs b/backend/api/api/Services/ModelService.cs
index d3ff9bf9..12297635 100644
--- a/backend/api/api/Services/ModelService.cs
+++ b/backend/api/api/Services/ModelService.cs
@@ -35,6 +35,10 @@ namespace api.Services
{
return _model.Find(model => model.uploaderId == userId).ToList();
}
+ public List<Model> GetMyModelsByType(string userId, string problemType)
+ {
+ return _model.Find(model => (model.uploaderId == userId && model.type == problemType)).ToList();
+ }
public List<Model> GetLatestModels(string userId)
{
List<Model> list = _model.Find(model => model.uploaderId == userId).ToList();
@@ -83,7 +87,7 @@ namespace api.Services
public bool CheckDb()
{
Model? model = null;
- model = _model.Find(model => model.uploaderId == "Igrannonica").FirstOrDefault();
+ model = _model.Find(model => model.uploaderId == "000000000000000000000000").FirstOrDefault();
if (model != null)
return false;