Skip to content

Commit

Permalink
Add formatting to HW list
Browse files Browse the repository at this point in the history
  • Loading branch information
Promax1113 committed Sep 18, 2023
1 parent ae489b7 commit 12e5556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion data_processing/sumarizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

def make_summary(homework_list):
index = 0
for item in homework_list:
index += 1
info = item.get_all()
print(f"Name: {info['name']}\nCourse: {info['course']}\n")
print(f"{index}. Name: {info['name']}\nCourse: {info['course']}\nDue: {info['due_date']}\nLink: {info['link']}")
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def result_checker(x):
if x == 200:
return "Success!"
elif x == 403:
elif x == 401:
return "Failure"
elif x == 204:
return "Saved!"
Expand Down

0 comments on commit 12e5556

Please sign in to comment.