Skip to content

Commit

Permalink
Fixed empty new lines on Windows machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamodi committed Jul 20, 2015
1 parent bce2f1b commit fc23249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='facebook-online-friend-tracker',
version='1.2.1',
version='1.2.2',
description='This tool tracks the number of online friends a user has on Facebook at any given time.',
long_description=open('README.rst').read(),
url='https://github.com/bhamodi/facebook-online-friend-tracker',
Expand Down
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def main():
print('[WARNING] ' + path_to_csv_file + ' does not exist. Creating a new CSV file now...')
path_to_csv_file = os.path.join(os.getcwd(), 'facebook_online_friend_tracker_data.csv')
with open(path_to_csv_file, 'w') as f:
writer = csv.writer(f)
writer = csv.writer(f, lineterminator='\n')
writer.writerow(['Timestamp', 'Number of Online Friends'])
print('New CSV file created at: ' + path_to_csv_file)

Expand Down Expand Up @@ -83,6 +83,6 @@ def main():

# Append row to the CSV file
with open(path_to_csv_file, 'a') as f:
writer = csv.writer(f)
writer = csv.writer(f, lineterminator='\n')
writer.writerow([today, onlineFriendsCount])
print('Added: ' + today + ' -> ' + str(onlineFriendsCount) + ' to the spreadsheet.')

0 comments on commit fc23249

Please sign in to comment.