diff --git a/backend/app/serializers.py b/backend/app/serializers.py index 0f820d9..e10638f 100644 --- a/backend/app/serializers.py +++ b/backend/app/serializers.py @@ -1,3 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +"""Serializers for returning data.""" + + from rest_framework import serializers from app.models import BhavCopyEquity diff --git a/backend/app/urls.py b/backend/app/urls.py index 3394ae1..6630caa 100644 --- a/backend/app/urls.py +++ b/backend/app/urls.py @@ -1,6 +1,16 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +"""Bullish project URLs.""" + from django.urls import path -from app.views import BhavCopyEquityView, BhavCopyEquityDefaultRedisView, BhavCopyEquityCustomRedisView, EmptyRespoinseView +from app.views import ( + BhavCopyEquityView, + BhavCopyEquityDefaultRedisView, + BhavCopyEquityCustomRedisView, + EmptyRespoinseView +) urlpatterns = [ path('emptyresponse/', EmptyRespoinseView.as_view(), name='emptyresponse_view'), diff --git a/backend/app/utils.py b/backend/app/utils.py index 4ab87a7..c514678 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -33,7 +33,6 @@ def fetch_bhav_copy_equity_data(curr_date=None): } if curr_date is None: curr_date = datetime.datetime.now().strftime("%d%m%y") - curr_date = '080221' # TODO: remove hardcode zipurl = f'https://www.bseindia.com/download/BhavCopy/Equity/EQ{curr_date}_CSV.ZIP' resp = requests.get(zipurl, headers=headers) diff --git a/backend/app/views.py b/backend/app/views.py index 823c97e..d6d2926 100644 --- a/backend/app/views.py +++ b/backend/app/views.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +"""Bullish page views.""" + # third-party imports from rest_framework.response import Response