diff --git a/app/charts/management/commands/initialize_data.py b/app/charts/management/commands/initialize_data.py index d17d796..3c21f42 100644 --- a/app/charts/management/commands/initialize_data.py +++ b/app/charts/management/commands/initialize_data.py @@ -30,5 +30,18 @@ class Command(BaseCommand): try: self.stdout.write(self.style.SUCCESS(f"Updating {coin} data")) get_history_function(coin) + except Exception as e: self.stdout.write(self.style.ERROR(f"Error with {coin}: {e}")) + + try: + self.stdout.write(self.style.SUCCESS("Updating p2pool data")) + update_p2pool() + except Exception as e: + self.stdout.write(self.style.ERROR(f"Error updating p2pool data: {e}")) + + try: + self.stdout.write(self.style.SUCCESS("Updating daily data")) + update_database() + except Exception as e: + self.stdout.write(self.style.ERROR(f"Error updating daily data: {e}")) \ No newline at end of file