Skip to content

Commit

Permalink
Merge pull request #1436 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
hackerrank added
  • Loading branch information
adnankattekaden authored Oct 27, 2023
2 parents 154edb2 + aa21b5d commit 78e6f33
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 721 deletions.
2 changes: 2 additions & 0 deletions api/dashboard/profile/profile_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ class Meta:
"behance",
"stackoverflow",
"medium",
"hackerrank"
]

def update(self, instance, validated_data):
Expand All @@ -354,6 +355,7 @@ def update(self, instance, validated_data):
"behance",
"stackoverflow",
"medium",
"hackerrank"
]

old_accounts = {account: getattr(instance, account) for account in accounts}
Expand Down
4 changes: 2 additions & 2 deletions db/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class VoucherLog(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="voucher_log_user")
task = models.ForeignKey(TaskList, on_delete=models.CASCADE, related_name="voucher_log_task")
karma = models.IntegerField()
week = models.CharField(max_length=2)
week = models.CharField(max_length=2, blank=True, null=True)
month = models.CharField(max_length=10)
claimed = models.BooleanField()
event = models.CharField(max_length=50, blank=True, null=True)
Expand All @@ -212,4 +212,4 @@ class VoucherLog(models.Model):

class Meta:
managed = False
db_table = "voucher_log"
db_table = "voucher_log"
1 change: 1 addition & 0 deletions db/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class Socials(models.Model):
behance = models.CharField(max_length=60, blank=True, null=True)
stackoverflow = models.CharField(max_length=60, blank=True, null=True)
medium = models.CharField(max_length=60, blank=True, null=True)
hackerrank = models.CharField(max_length=60, blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.CASCADE, db_column='created_by',
related_name='socials_created_by')
updated_by = models.ForeignKey(User, on_delete=models.CASCADE, db_column='updated_by',
Expand Down
Loading

0 comments on commit 78e6f33

Please sign in to comment.