Skip to content

Commit

Permalink
Quick typo fix. Yikes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Romulus10 committed May 11, 2021
1 parent cc12a14 commit 003d8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __str__(self):

def cal_key(fk):
present_keys = Patient.objects.filter(campaign=fk).order_by('-campaign_key').values_list('campaign_key', flat=True)
if present_keys and presnet_keys[0] is not None:
if present_keys and present_keys[0] is not None:
return present_keys[0] + 1
else:
return 0
Expand Down

0 comments on commit 003d8ec

Please sign in to comment.