# TODO: This needs rethinking. Client type is designed to be stored in
# the database (referenced by the btclient_id).
client_type = swarm_writer.first_access_instance().get_client_type_for_session(session_id)
- parser = parsing.LogParser.get_parser(client_type, archive_file)
+
+ # TODO: Uncompress log archive.
+ uncompress_path = "/tmp"
+ # uncompress_log_archive(archive_file, uncompress_path)
+ parser = parsing.LogParser.get_parser(client_type, uncompress_path)
parse_store_session(swarm_writer, parser, session_id)