Skip to content

Commit

Permalink
fix(output.py): fixed the output
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipOlwoc committed Dec 12, 2024
1 parent ee0c60c commit d81e0fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gatorgrade/output/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,20 +296,20 @@ def write_json_or_md_file(file_name, content_type, content):
console = Console()

class Motivation:
def __init__(self, quotes: dict, context: str = None): # type: ignore
def __init__(self, quotes: dict): # type: ignore
"""Construct a Motivation.
Args:
quotes: A dictionary of motivational quotes with keys like "low_motivation", "high_motivation".
context: Additional context or description about the quote. Optional.
"""
self.quotes = quotes
self.context = context


def get_motivation(self, motivation_level: str):
"""Retrieve a motivational quote based on the motivation level."""
quote = self.quotes.get(motivation_level, "Keep going, you're doing great!")
return f"{quote}\nContext: {self.context if self.context else 'Keep pushing forward!'}"
return f"{quote}"


def run_checks(
Expand Down

0 comments on commit d81e0fe

Please sign in to comment.