Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV file generation #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kennethmitra
Copy link

Added the option to generate a csv file instead of the text log file.
This removes the "-n" argument and replaces it with "-t" to specify the log file type (options: "text", "csv", or "none")

@mfoc
Copy link
Owner

mfoc commented Nov 11, 2020

Thank you kennethmitra for your pull request. Work is very busy for me at the moment. However, when I get a chance over the next few weeks I will review your pull request and if everything is in order I will gratefully merge your code. Thank you again, Martin

with open(file, 'a') as writer:
writer.write(exit_msg + "\n")

if log_type == "csv":

Choose a reason for hiding this comment

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

elif would be better instead of multiple if statements since we need to check which log_type was chosen

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.

3 participants