Created
March 10, 2016 13:35
-
-
Save curtisforrester/cd3034901a40976adfc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inc_redis_counter(key=RedisKeys.SITE_TRAFFIC_KEY_PREFIX) | |
def handle_site_detail_head(customer_num, data=None, remote_addr=None): | |
""" | |
:raises: Site.DoesNotExist | |
:unit_test: | |
:unit_test: head_bad_cust_num | |
:unit_test: head_unknown | |
""" | |
site = Site.objects.get(customer_num=customer_num) | |
# Update the "last seen" | |
site.touch() | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment