Skip to content

Commit

Permalink
update static code
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebamus committed Aug 27, 2024
1 parent 9fc1f0c commit 008cea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_middlewares/common/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, get_response):
self.get_response = get_response

def stats(self, os_info):
today = timezone.now().date()
today = timezone.now().date().day
with transaction.atomic():
# count = ConnectionMethodStats.objects.filter(
# created_at__day=timezone.now().date().day
Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(self, get_response):
def __call__(self, request):
if "admin" not in request.path:
with transaction.atomic():
today = timezone.now().date()
today = timezone.now().date().day
# 오늘 날짜의 통계 가져오기
stats, created = ConnectionHardwareStats.objects.get_or_create(
created_at__date=today
Expand Down

0 comments on commit 008cea9

Please sign in to comment.