Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion mrq/dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import time
import os
import sys
import re
from bson import ObjectId
import json
import argparse
Expand Down Expand Up @@ -127,7 +128,11 @@ def build_api_datatables_query(req):

for param in ["queue", "path", "exceptiontype"]:
if req.args.get(param):
query[param] = req.args.get(param)
if "*" in req.args.get(param):
query[param] = re.compile("^"+req.args.get(param)+"$")
else:
query[param] = req.args.get(param)

if req.args.get("status"):
statuses = req.args["status"].split("-")
if len(statuses) == 1:
Expand Down