feat(init-data): add p2pool and daily data updates
Some checks are pending
Docker / build (push) Waiting to run

Enhanced the data initialization process to include p2pool and daily data updates, improving the comprehensiveness of data management. With this change, more data components are maintained accurately, addressing potential omissions in daily operations. This helps ensure up-to-date information is available for analysis.
This commit is contained in:
Kumi 2024-11-13 14:45:53 +01:00
parent 8c779ba5e5
commit 003fa03811
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -30,5 +30,18 @@ class Command(BaseCommand):
try: try:
self.stdout.write(self.style.SUCCESS(f"Updating {coin} data")) self.stdout.write(self.style.SUCCESS(f"Updating {coin} data"))
get_history_function(coin) get_history_function(coin)
except Exception as e: except Exception as e:
self.stdout.write(self.style.ERROR(f"Error with {coin}: {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}"))