Skip to content

Commit

Permalink
Use only 'path' portion of the URI
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Aug 19, 2021
1 parent e6e95b0 commit 3c56be7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import tempfile
from bz2 import BZ2File
from datetime import datetime, timedelta
from urllib.parse import urlsplit

from trollsift.parser import compose
from posttroll.publisher import Publish
Expand Down Expand Up @@ -131,7 +132,7 @@ def get_aliases(raw_config_str):
def process_message(msg, config):
"""Process the message."""
pattern = config["output_file_pattern"]
input_files = [item["uri"] for item in msg.data["collection"]]
input_files = [urlsplit(item["uri"]).path for item in msg.data["collection"]]

data = msg.data.copy()
data["proc_time"] = datetime.utcnow()
Expand Down

0 comments on commit 3c56be7

Please sign in to comment.