There was an error while loading. Please reload this page.
2 parents 5d97e68 + b9abd54 commit d2e9acdCopy full SHA for d2e9acd
1 file changed
mrq/dashboard/app.py
@@ -6,6 +6,7 @@
6
import time
7
import os
8
import sys
9
+import re
10
from bson import ObjectId
11
import json
12
import argparse
@@ -127,7 +128,11 @@ def build_api_datatables_query(req):
127
128
129
for param in ["queue", "path", "exceptiontype"]:
130
if req.args.get(param):
- query[param] = req.args.get(param)
131
+ if "*" in req.args.get(param):
132
+ query[param] = re.compile("^"+req.args.get(param)+"$")
133
+ else:
134
+ query[param] = req.args.get(param)
135
+
136
if req.args.get("status"):
137
statuses = req.args["status"].split("-")
138
if len(statuses) == 1:
0 commit comments