Skip to content

Commit

Permalink
Fixed: Un-correct referrer spelling
Browse files Browse the repository at this point in the history
It's spelled incorrectly on purpose.
  • Loading branch information
ahankinson committed Mar 18, 2024
1 parent d3d994e commit 0fb6975
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_hit(parsed_line: dict, idsite: str) -> Hit:

h: Hit = {
"url": url,
"urlref": parsed_line.get("referrer"),
"urlref": parsed_line.get("http_referer"),
"ua": parsed_line.get("http_user_agent"),
"dimension1": accept_header,
"dimension2": parsed_line.get("status"),
Expand Down Expand Up @@ -143,6 +143,7 @@ def parse_line(line: str, lineno: int, cfg: dict) -> Optional[Hit]:
line = line.replace('\\x', '\\u00')
json_record: dict = ujson.loads(line)
keep_line: bool = apply_line_filters(json_record, cfg)

if not keep_line:
return None

Expand Down

0 comments on commit 0fb6975

Please sign in to comment.