Skip to content

Commit

Permalink
insert rank instead of number
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesmc52 committed Jan 16, 2022
1 parent 9500989 commit 2c91fac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions app/migrations/0013_data_rank.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.0.12 on 2022-01-16 13:21

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('app', '0012_auto_20211123_0405'),
]

operations = [
migrations.AddField(
model_name='data',
name='rank',
field=models.IntegerField(blank=True, default=0),
),
]
1 change: 1 addition & 0 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class data(models.Model):
year = models.IntegerField( blank=True, default = 0)
quarter = models.CharField(max_length=10, null=True, blank=True, choices = choice.QUARTER,default='')
score = models.DecimalField(max_digits=15, decimal_places=3, default=0.0)
rank = models.IntegerField( blank=True, default = 0)
objects = DataFrameManager()

def __str__(self):
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Map/DefaultD3.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const TopCounties = (props) => {
<thead>
<tr>
<th>
Number
Rank
</th>
<th>
County
Expand Down

0 comments on commit 2c91fac

Please sign in to comment.