fix
This commit is contained in:
parent
80a73c40d7
commit
deaf592d6e
1 changed files with 4 additions and 6 deletions
|
@ -906,8 +906,6 @@ async def index(request):
|
|||
|
||||
if now > 1:
|
||||
try:
|
||||
coin_xmr = Coin.objects.filter(name='xmr').get(date=yesterday)
|
||||
coin_xmr.delete()
|
||||
coin_xmr = Coin.objects.filter(name='xmr').get(date=yesterday)
|
||||
if coin_xmr:
|
||||
print('xmr found yesterday')
|
||||
|
@ -927,10 +925,10 @@ async def index(request):
|
|||
|
||||
if now > 5:
|
||||
try:
|
||||
coin_btc = Coin.objects.filter(name='btc').filter(date=yesterday)
|
||||
coin_zec = Coin.objects.filter(name='zec').filter(date=yesterday)
|
||||
coin_dash = Coin.objects.filter(name='dash').filter(date=yesterday)
|
||||
coin_grin = Coin.objects.filter(name='grin').filter(date=yesterday)
|
||||
coin_btc = list(Coin.objects.filter(name='btc').filter(date=yesterday))[0]
|
||||
coin_zec = list(Coin.objects.filter(name='zec').filter(date=yesterday))[0]
|
||||
coin_dash = list(Coin.objects.filter(name='dash').filter(date=yesterday))[0]
|
||||
coin_grin = list(Coin.objects.filter(name='grin').filter(date=yesterday))[0]
|
||||
if coin_btc and coin_zec and coin_dash and coin_grin:
|
||||
print('coins found yesterday')
|
||||
if coin_btc.transactions > 0 and coin_btc.inflation > 0 and coin_zec.supply > 0 and coin_dash.supply > 0 and coin_grin.supply > 0:
|
||||
|
|
Loading…
Reference in a new issue