mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
hotspots: Fix typos in function name and code comment.
This commit is contained in:
committed by
Tim Abbott
parent
25276a14d1
commit
540cca595c
@@ -7,7 +7,7 @@ menu function. In this comment I try to help
|
|||||||
you know where to look for relevant code.
|
you know where to look for relevant code.
|
||||||
|
|
||||||
The module that you're reading now doesn't
|
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:
|
Our gear menu has these choices:
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import orjson
|
|||||||
from django.contrib.auth.models import UserManager
|
from django.contrib.auth.models import UserManager
|
||||||
from django.utils.timezone import now as timezone_now
|
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.upload import copy_avatar
|
||||||
from zerver.lib.utils import generate_api_key
|
from zerver.lib.utils import generate_api_key
|
||||||
from zerver.models import (
|
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_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:
|
def get_display_email_address(user_profile: UserProfile) -> str:
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:
|
|||||||
return []
|
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)):
|
for userhotspot in frozenset(UserHotspot.objects.filter(user=source_profile)):
|
||||||
UserHotspot.objects.create(
|
UserHotspot.objects.create(
|
||||||
user=target_profile, hotspot=userhotspot.hotspot, timestamp=userhotspot.timestamp
|
user=target_profile, hotspot=userhotspot.hotspot, timestamp=userhotspot.timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user