feat(init-data): add p2pool and daily data updates
Some checks are pending
Docker / build (push) Waiting to run
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:
parent
8c779ba5e5
commit
003fa03811
1 changed files with 13 additions and 0 deletions
|
@ -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}"))
|
Loading…
Reference in a new issue