Skip to content

Commit

Permalink
Merge pull request #134 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 a99dacb + eb9e9c5 commit afeeb94
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions faucet/migrations/0057_alter_claimreceipt_amount.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.0.4 on 2023-10-02 21:59

from django.db import migrations, models


class Migration(migrations.Migration):

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

operations = [
migrations.AlterField(
model_name='claimreceipt',
name='amount',
field=models.BigIntegerField(),
),
]
4 changes: 2 additions & 2 deletions 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 = BigNumField()
amount = models.BigIntegerField()
datetime = models.DateTimeField()
last_updated = models.DateTimeField(auto_now=True, null=True, blank=True)
batch = models.ForeignKey(
Expand Down Expand Up @@ -239,7 +239,7 @@ class Chain(models.Model):
show_in_gastap = models.BooleanField(default=True)

def __str__(self):
return f"{self.pk} - {self.symbol}:{self.chain_id}"
return f"{self.pk} - {self.symbol}:{self.chain_id} - {self.chain_name}"

@property
def has_enough_funds(self):
Expand Down

0 comments on commit afeeb94

Please sign in to comment.