Skip to content

Commit

Permalink
Merge pull request #136 from UnitapApp/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Mohamad Bastin authored Oct 2, 2023
2 parents b8a5b89 + a0ebd60 commit 315b2d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions faucet/migrations/0058_alter_claimreceipt_amount.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.0.4 on 2023-10-02 22:29

import core.models
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('faucet', '0057_alter_claimreceipt_amount'),
]

operations = [
migrations.AlterField(
model_name='claimreceipt',
name='amount',
field=core.models.BigNumField(max_length=200),
),
]
2 changes: 1 addition & 1 deletion faucet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class ClaimReceipt(models.Model):

passive_address = models.CharField(max_length=512, null=True, blank=True)

amount = models.BigIntegerField()
amount = BigNumField()
datetime = models.DateTimeField()
last_updated = models.DateTimeField(auto_now=True, null=True, blank=True)
batch = models.ForeignKey(
Expand Down
2 changes: 1 addition & 1 deletion faucet/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def process_batch(self, batch_pk):
user_profile=receipt.user_profile,
wallet_type=batch.chain.chain_type,
).address,
"amount": receipt.amount,
"amount": int(receipt.amount),
}
for receipt in batch.claims.all()
]
Expand Down

0 comments on commit 315b2d3

Please sign in to comment.