Quick actions

cmd+k|ctrl+k

Navigation

Languages

switch

Snippet info

Language

Python

Visibility

public

Author

fjrbgs

Created

2025-08-11T14:38:11.713072Z

Updated

2025-08-11T14:38:11.713072Z

input_data = """

"""

def transform_and_print(data: str):
    for line in data.splitlines():
        line = line.strip()
        if not line:
            continue
        parts = line.split("==", 1)
        if len(parts) != 2:
            print(f"Skipping malformed line: {line}")
            continue
        rid_token = parts[1].split(":", 1)
        if len(rid_token) != 2:
            print(f"Skipping malformed line: {line}")
            continue
        rid, token = rid_token
        print(f"{token}||02:00:00:00:00:00|{rid}")
if __name__ == "__main__":
    transform_and_print(input_data)
INFO