Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Commit 746e89a

Browse files
committed
update_restaurant_bot
1 parent 6d24889 commit 746e89a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

application/restaurant.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

application/restaurant_bot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
csv_file.seek(0)
2222
for row in reader:
2323
if restaurant in row['Name']:
24-
with open('restaurant.csv', 'w'):
25-
row['Count'] = 2
24+
#with open('restaurant.csv', 'w') as plus_count:
25+
# plus_writer = csv.writer(plus_count)
26+
# plus_writer.writerow(str(int(row['Count']) + 1))
2627
break
2728
else:
2829
writer.writerow({'Name': restaurant, 'Count': 1})

0 commit comments

Comments
 (0)