We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cda84 commit abf3582Copy full SHA for abf3582
src/PollinationSDK/Wrapper/LocalDatabase.cs
@@ -138,9 +138,14 @@ public List<ScheduledJobInfo> Get()
138
return Get(connection, string.Empty);
139
}
140
141
- public List<ScheduledJobInfo> Get(string projSlug)
+ public List<ScheduledJobInfo> Get(string projSlug, bool reversedOrder = false, int count = 10)
142
{
143
var condition = $"ProjSlug = '{projSlug}'";
144
+ if (reversedOrder)
145
+ condition += " ORDER BY DateTime DESC";
146
+ if (count > 0)
147
+ condition += $" LIMIT {count}";
148
+
149
return Get(connection, condition);
150
151
public ScheduledJobInfo Get(string projSlug, string jobID)
0 commit comments