hotspots: Fix typos in function name and code comment.

This commit is contained in:
Sumanth V Rao
2020-12-20 17:33:32 +05:30
committed by Tim Abbott
parent 25276a14d1
commit 540cca595c
3 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ menu function. In this comment I try to help
you know where to look for relevant code.
The module that you're reading now doesn't
actually doesn't do much of the work.
actually do much of the work.
Our gear menu has these choices:

View File

@@ -4,7 +4,7 @@ import orjson
from django.contrib.auth.models import UserManager
from django.utils.timezone import now as timezone_now
from zerver.lib.hotspots import copy_hotpots
from zerver.lib.hotspots import copy_hotspots
from zerver.lib.upload import copy_avatar
from zerver.lib.utils import generate_api_key
from zerver.models import (
@@ -48,7 +48,7 @@ def copy_user_settings(source_profile: UserProfile, target_profile: UserProfile)
)
copy_avatar(source_profile, target_profile)
copy_hotpots(source_profile, target_profile)
copy_hotspots(source_profile, target_profile)
def get_display_email_address(user_profile: UserProfile) -> str:

View File

@@ -83,7 +83,7 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:
return []
def copy_hotpots(source_profile: UserProfile, target_profile: UserProfile) -> None:
def copy_hotspots(source_profile: UserProfile, target_profile: UserProfile) -> None:
for userhotspot in frozenset(UserHotspot.objects.filter(user=source_profile)):
UserHotspot.objects.create(
user=target_profile, hotspot=userhotspot.hotspot, timestamp=userhotspot.timestamp