Lines Matching defs:mg
109 def count_search(mg, d):
115 search_by_ip[mg["ip"]] += 1
117 search_by_ip[mg["ip"]] = 1
120 pm = pkg_pat.search(mg["uri"])
126 if mg["response"] == "200":
127 if mg["subcode"] == "-":
142 elif mg["response"] == "404":
151 agent = pkg_agent_pat.search(mg["agent"])
191 mg = m.groupdict()
195 if lastdatetime and mg["date"] == lastdate:
198 d = datetime.datetime(*(time.strptime(mg["date"], "%d/%b/%Y")[0:6]))
199 lastdate = mg["date"]
205 count_search(mg, d)