Skip to content

Conversation

@beckyjackson
Copy link
Collaborator

Resolves #104

Copy link
Member

@jamesaoverton jamesaoverton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inefficient. Something like this should work:

    with open(local_sheet, "w") as fw:
        writer = csv.writer(fw, lineterminator="\n")
        with open(cached_sheet, "r") as fr:
             writer.writerows(csv.reader(fr, delimiter="\t"))

@beckyjackson beckyjackson merged commit 676722e into master Feb 11, 2021
@beckyjackson beckyjackson deleted the csv-fix branch February 11, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cogs pull needs to write TSV or CSV as appropriate

3 participants