Skip to content

Commit 1d83fef

Browse files
committed
adding db.log file and customers.db
1 parent 43c4e89 commit 1d83fef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Binary file not shown.

students/visokoo/lesson04/assignment/src/basic_operations.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def update_customer_credit(customer_id, new_credit):
166166
if update == 0:
167167
LOGGER.error("No customer was found for id %s", customer_id)
168168
raise ValueError("NoCustomer")
169+
LOGGER.info("Update was successful for customer: %s", customer_id)
169170
return update
170171

171172

@@ -185,7 +186,8 @@ def delete_all_rows():
185186
def load_data(file):
186187
"""load_data(file)
187188
188-
Takes in a file and loads all of its data into the DB.
189+
Takes in a file and creates an iterable of its data to prep for being
190+
added to the DB.
189191
190192
:param file file: Path to file for use
191193

0 commit comments

Comments
 (0)