index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
6,537 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/models.py | from django.db import models
from apps.account.models import User
from apps.brand.models import Filial
from core.constants import CHECK_TYPE
class Check(models.Model):
"""
Model to save all checks from 1C
"""
unique_1c_check_code = models.CharField(
max_length=255, unique=True, verbose_na... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,538 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/custom_openapi.py | from drf_yasg import openapi
lat_param = openapi.Parameter(
'lat', openapi.IN_QUERY,
description="Query param lat", type=openapi.TYPE_NUMBER
)
long_param = openapi.Parameter(
'long', openapi.IN_QUERY,
description="Query param long", type=openapi.TYPE_NUMBER
)
filial_extra_params = [lat_param, long_par... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,539 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0005_auto_20210408_1140.py | # Generated by Django 2.2.16 on 2021-04-08 05:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('info', '0004_auto_20210406_1501'),
]
operations = [
migrations.AlterField(
model_name='promotionandnews',
name='cre... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,540 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/models.py | from django.db import models
from django.forms import ValidationError
from ckeditor_uploader.fields import RichTextUploadingField
from django_2gis_maps import fields as map_fields
from core.utils import generate_filename
from core.constants import WORK_DAYS
class Brand(models.Model):
position = models.PositiveI... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,541 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0005_auto_20210405_1740.py | # Generated by Django 2.2.16 on 2021-04-05 11:40
import ckeditor_uploader.fields
import core.utils
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('brand', '0004_auto_20210401_1321'),
]
operations = [
migrations.AlterField(
m... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,542 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0004_auto_20210401_1321.py | # Generated by Django 2.2.16 on 2021-04-01 07:21
from django.db import migrations
import django_2gis_maps.fields
class Migration(migrations.Migration):
dependencies = [
('brand', '0003_remove_filial_description'),
]
operations = [
migrations.RemoveField(
model_name='brandima... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,543 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/apps.py | from django.apps import AppConfig
class InfoConfig(AppConfig):
name = 'apps.info'
verbose_name = 'Информация'
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,544 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/integration/views.py | from drf_yasg.utils import swagger_auto_schema
from rest_framework import generics, status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from apps.check.models import Check
from apps.integration.serializers import (
Auth1cSerializer, Get1cUserSerializer, Check... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,545 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/migrations/0004_auto_20210504_1810.py | # Generated by Django 2.2.16 on 2021-05-04 12:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notifications', '0003_auto_20210428_1419'),
]
operations = [
migrations.AlterField(
model_name='notification',
name... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,546 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /core/urls.py | from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include, re_path
from drf_yasg import openapi
from drf_yasg.views import get_schema_view
admin.site.site_header = "Adeliya"
admin.site.site_title ... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,547 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0008_auto_20210428_1228.py | # Generated by Django 2.2.16 on 2021-04-28 06:28
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0007_banner_description'),
]
operations = [
migrations.AlterField(
model_name='promotionandnews... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,548 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/tests/factories.py | from random import choice
import factory
from apps.brand.models import (
Brand, BrandImage,
Filial, FilialImage, FilialPhone,
)
class BrandFactory(factory.django.DjangoModelFactory):
class Meta:
model = Brand
title = factory.Faker('company')
logo = factory.django.ImageField(width=1024, ... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,549 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/tests/test_views.py | import json
from unittest import mock
from django.test import TestCase, Client
from django.urls import reverse
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APIClient
from apps.account.service import UserAuthService, ChangeOldPhoneService
from app... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,550 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /core/utils.py | import os
import re
import uuid
from django.utils import timezone
def slugify_camelcase(string: str, sep: str = "-") -> str:
"""
Converts camelcase string to lowercase string divided with given
separator
:param string: string to slugify
:param sep: separator
:return: slugified string
Wi... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,551 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/migrations/0010_auto_20210630_1621.py | # Generated by Django 2.2.16 on 2021-06-30 10:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0009_auto_20210527_1151'),
]
operations = [
migrations.AlterField(
model_name='user',
name='discount',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,552 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/admin.py | from django.contrib import admin
from solo.admin import SingletonModelAdmin
from apps.brand.admin import ImageInlineFormSet
from .models import (
Banner, ProgramCondition, Contact,
PromotionAndNews, PromotionAndNewsImage, ContactIcon,
)
from apps.notifications.tasks import save_notification_and_send_fcm_for_a... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,553 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/service.py | import json
import datetime
from fcm_django.models import FCMDevice
from loguru import logger
from core.constants import DUE_DATE_CHECK_MESSAGE, MONTH_NAMES
class SendPushNotification:
@classmethod
def send_fcm(cls, user, notice_obj, body, badge_count):
responses, full_notification, data = cls.mess... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,554 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/tests/test_views.py | from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APIClient
from apps.account.tests.factories import UserFactory
class QRCodeAPIViewTest(TestCase):
@classmethod
def setUpTestDat... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,555 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/middleware.py | from apps.setting.service import ApplicationStatusService
class ApplicationStatusMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
response = self.get_response(request)
return ApplicationStatusService.check_application_status(
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,556 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/tasks.py | import json
from django.core.serializers.json import DjangoJSONEncoder
from huey.contrib.djhuey import task, periodic_task, db_task
from huey import crontab
from loguru import logger
from apps.notifications.models import Notification
from apps.notifications.service import SendPushNotification
from core.constants imp... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,557 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/filters.py | import django_filters
from apps.check.models import Check
class CheckFilter(django_filters.FilterSet):
start_date = django_filters.CharFilter(
field_name='accrued_point_date', method='start_date_filter'
)
end_date = django_filters.CharFilter(
field_name='accrued_point_date', method='end_d... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,558 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/pagination.py | from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
from apps.notifications.service import NotificationResponseService
class LargeListNotificationPagination(PageNumberPagination):
page_size = 20
def get_paginated_response(self, data):
reformat_data... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,559 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/models.py | import datetime
from django.db import models
from solo.models import SingletonModel
class TimeStampAbstractModel(models.Model):
created_at = models.DateTimeField(
verbose_name='Создано', auto_now_add=True, null=True
)
updated_at = models.DateTimeField(
verbose_name='Обновлено', auto_now... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,560 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/migrations/0008_user_is_corporate_account.py | # Generated by Django 2.2.16 on 2021-04-29 05:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0007_auto_20210414_1630'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_corporate_a... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,561 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/service.py | import random
import re
import string
import requests
import xmltodict
from datetime import timedelta, datetime
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.conf import settings
from rest_framework import exceptions, status
from rest_framework.authtoken.models import T... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,562 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/tests/factories.py | from random import choice
import datetime
import factory
from apps.setting.models import AppVersion, Setting
class AppVersionFactory(factory.django.DjangoModelFactory):
class Meta:
model = AppVersion
android_version = factory.Sequence(lambda n: '1.%d' % choice([1, 2, 3]))
android_force_update =... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,563 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/migrations/0009_auto_20210527_1151.py | # Generated by Django 2.2.16 on 2021-05-27 05:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0008_user_is_corporate_account'),
]
operations = [
migrations.AlterField(
model_name='user',
name='qr_co... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,564 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/views.py | from django_filters.rest_framework import DjangoFilterBackend
from drf_yasg.utils import swagger_auto_schema
from rest_framework import generics
from rest_framework.permissions import IsAuthenticated
from apps.account.custom_openapi import AuthRetrieveAPIView, auth_param
from apps.account.serializers import AuthErrorS... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,565 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/migrations/0003_appversion_ios_build_number.py | # Generated by Django 2.2.16 on 2021-04-30 08:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('setting', '0002_appversion'),
]
operations = [
migrations.AddField(
model_name='appversion',
name='ios_build_number... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,566 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0007_banner_description.py | # Generated by Django 2.2.16 on 2021-04-09 04:33
import ckeditor_uploader.fields
from django.db import migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('info', '0006_auto_20210408_1352'),
]
operations = [
migrations.AddField(
m... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,567 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/__init__.py | default_app_config = 'apps.check.apps.CheckConfig'
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,568 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/serializers.py | from rest_framework import serializers
from drf_yasg.utils import swagger_serializer_method
from .models import (
Banner, ProgramCondition, Contact,
PromotionAndNews, PromotionAndNewsImage, ContactIcon,
)
from apps.notifications.models import Notification
class PromotionAndNewsSerializer(serializers.ModelSe... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,569 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/admin.py | from django.contrib import admin
from solo.admin import SingletonModelAdmin
from apps.setting.models import Setting, AppVersion, HelpPage
@admin.register(Setting)
class SettingAdmin(SingletonModelAdmin):
pass
@admin.register(HelpPage)
class HelpPageAdmin(SingletonModelAdmin):
pass
@admin.register(AppVer... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,570 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/migrations/0001_initial.py | # Generated by Django 2.2.16 on 2021-04-06 10:20
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Setting',
fields=[
('id', ... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,571 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/integration/apps.py | from django.apps import AppConfig
class IntegrationConfig(AppConfig):
name = 'apps.integration'
verbose_name = 'Интеграция'
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,572 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/service.py | from django.http import JsonResponse
from rest_framework import status
from apps.setting.models import Setting
class ApplicationStatusService:
@classmethod
def check_application_status(cls, request, response):
app_setting = Setting.objects.first()
is_service_off = (
app_setting an... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,573 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/urls.py | from django.urls import path
from apps.notifications.views import NotificationAPIView
urlpatterns = [
path('', NotificationAPIView.as_view(), name='notification_list'),
]
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,574 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/migrations/0004_auto_20210429_1835.py | # Generated by Django 2.2.16 on 2021-04-29 12:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('check', '0003_auto_20210426_1106'),
]
operations = [
migrations.AddField(
model_name='check',
name='due_date',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,575 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/views.py | from django.db.models import Prefetch
from rest_framework import generics
from drf_yasg.utils import swagger_auto_schema
from apps.brand import custom_openapi
from apps.brand.models import Brand, Filial, FilialImage
from apps.brand.pagination import LargeListPagination, SmallListPagination
from apps.brand.serializer... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,576 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/integration/serializers.py | from django.contrib.auth import authenticate
from rest_framework import serializers
from apps.account.models import User
from apps.brand.models import Filial
from apps.check.models import Check
class Auth1cSerializer(serializers.ModelSerializer):
"""Сериалайзер для валидации пользователя 1c"""
phone = seria... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,577 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/migrations/0005_notification_is_on_credit.py | # Generated by Django 2.2.16 on 2021-05-06 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notifications', '0004_auto_20210504_1810'),
]
operations = [
migrations.AddField(
model_name='notification',
name='... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,578 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/models.py | import ast
from django.contrib.postgres.fields import JSONField
from django.db import models
from fcm_django.models import FCMDevice
from apps.account.models import User
from core.constants import (
ACCRUED, WITHDRAW, ACCRUED_AND_WITHDRAW,
NEWS, PROMOTION
)
from core.constants import NOTIFICATION_TYPE
from ap... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,579 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0006_auto_20210408_1352.py | # Generated by Django 2.2.16 on 2021-04-08 07:52
import core.utils
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('info', '0005_auto_20210408_1140'),
]
operations = [
migrations.CreateModel(
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,580 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/views.py | from drf_yasg.utils import swagger_auto_schema
from rest_framework import generics, status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from apps.account.custom_openapi import (
AuthRetrieveAPIView, AuthUpdateAPIView, auth_param,
)
from apps.account.models imp... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,581 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/apps.py | from django.apps import AppConfig
class CheckConfig(AppConfig):
name = 'apps.check'
verbose_name = 'Чек'
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,582 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/admin.py | from django.contrib import admin
from apps.notifications.models import Notification
@admin.register(Notification)
class NotificationAdmin(admin.ModelAdmin):
list_display = ['__str__', 'notice_type', 'user', 'is_viewed', 'is_active']
list_filter = ['user', 'notice_type', 'is_active']
fields = [
'u... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,583 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/serializers.py | from drf_yasg.utils import swagger_serializer_method
from rest_framework import serializers
from apps.account.models import User, City
from apps.account.service import (
UserAuthService, PhoneConfirmationService, ChangeOldPhoneService,
)
from apps.integration.service import UserGetWalletDataService
from apps.notif... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,584 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/forms.py | from django import forms
from django.core.exceptions import ValidationError
from apps.brand.models import Filial
class FilialForm(forms.ModelForm):
class Meta:
model = Filial
fields = '__all__'
def clean(self):
super().clean()
errors = {}
start_work = self.cleaned_dat... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,585 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/__init__.py | default_app_config = 'apps.setting.apps.SettingConfig'
| {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,586 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/tests/mymock.py | from rest_framework import status
from rest_framework.response import Response
from apps.account.tests import constants
class SuccessSmsNikitaResponse:
def __init__(self):
self.status_code = status.HTTP_200_OK
self.text = constants.SMS_NIKITA_TEXT_ON_200_WITH_RESPONSE_STATUS_11
class SuccessSms... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,587 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/migrations/0005_helppage.py | # Generated by Django 2.2.16 on 2021-05-17 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('setting', '0004_auto_20210505_1513'),
]
operations = [
migrations.CreateModel(
name='HelpPage',
fields=[
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,588 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/custom_openapi.py | from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework import generics
from rest_framework.permissions import IsAuthenticated
from apps.account.serializers import AuthErrorSerializer
auth_param = openapi.Parameter(
'Authorization',
openapi.IN_HEADER,
description='T... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,589 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0007_filial_unique_1c_filial_code.py | # Generated by Django 2.2.16 on 2021-04-12 11:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('brand', '0006_auto_20210407_1607'),
]
operations = [
migrations.AddField(
model_name='filial',
name='unique_1c_fili... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,590 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/models.py | from django.contrib.auth.models import AbstractUser, UserManager
from django.db import models
from django.db.models import Q, UniqueConstraint
from core.constants import GENDER_TYPE, MALE
from core.utils import generate_filename
class CustomUserManager(UserManager):
def _create_user(self, phone, password, **extr... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,591 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/migrations/0002_auto_20210415_1834.py | # Generated by Django 2.2.16 on 2021-04-15 12:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('check', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='check',
name='filial_1c_code',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,592 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0002_auto_20210329_2332.py | # Generated by Django 2.2.16 on 2021-03-29 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('brand', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='brandimage',
name='is_main',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,593 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/integration/urls.py | from django.urls import path, include
from apps.integration.views import (
Auth1cAPIView, GetUserAPIView, CreateCheckAPIView, UpdateCheckAPIView
)
urlpatterns = [
path('user/', include([
path('login/', Auth1cAPIView.as_view(), name='login-1c'),
path(
'<str:qr_code>/', GetUserAPIVie... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,594 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/migrations/0002_auto_20210330_1214.py | # Generated by Django 2.2.16 on 2021-03-30 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='confirmation_code',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,595 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/views.py | from rest_framework import generics
from .models import AppVersion
from .serializers import AppVersionSerializer
class AppVersionAPIView(generics.RetrieveAPIView):
"""
API view for app version control
"""
queryset = AppVersion.objects.all()
serializer_class = AppVersionSerializer
def get... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,596 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0001_initial.py | # Generated by Django 2.2 on 2021-03-29 07:58
import ckeditor_uploader.fields
import core.utils
from django.db import migrations, models
import django.db.models.deletion
import django_2gis_maps.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
m... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,597 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/migrations/0003_auto_20210428_1419.py | # Generated by Django 2.2.16 on 2021-04-28 08:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('notifications', '0002_auto_20210428_1228'),
]
operations = [
migrations.AlterField(
model_name... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,598 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0004_auto_20210406_1501.py | # Generated by Django 2.2.16 on 2021-04-06 09:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0003_auto_20210331_1540'),
]
operations = [
migrations.AlterModelOptions(
name='promotionandnews',
options={'orderi... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,599 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/migrations/0003_auto_20210331_1540.py | # Generated by Django 2.2.16 on 2021-03-31 09:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0002_auto_20210329_1451'),
]
operations = [
migrations.RenameField(
model_name='promotionandnews',
old_name='create... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,600 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/serializers.py | from drf_yasg.utils import swagger_serializer_method
from rest_framework import serializers
from apps.brand.models import (
Brand, BrandImage, FilialImage, FilialPhone, Filial
)
from apps.brand.service import FilialService, WorkDayService
class BrandListSerializer(serializers.ModelSerializer):
class Meta:
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,601 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0010_auto_20210512_1145.py | # Generated by Django 2.2.16 on 2021-05-12 05:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('brand', '0009_auto_20210426_1104'),
]
operations = [
migrations.AlterModelOptions(
name='brand',
options={'ordering... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,602 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/migrations/0001_initial.py | # Generated by Django 2.2.16 on 2021-04-12 11:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('brand', '0007_filial_unique_1c_filial_code'),
migrations.swapp... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,603 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/integration/service.py | import datetime
import json
import requests
from requests.auth import HTTPBasicAuth
from requests.exceptions import Timeout
from django.conf import settings
from django.utils import timezone
from rest_framework import status, serializers, exceptions
from rest_framework.authtoken.models import Token
from rest_framewor... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,604 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/serializers.py | import datetime
from rest_framework import serializers
from drf_yasg.utils import swagger_serializer_method
from apps.account.models import User
from apps.brand.models import Filial
from apps.brand.serializers import FilialImageSerializer
from apps.check.models import Check
from apps.setting.models import Setting
fr... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,605 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/brand/migrations/0008_auto_20210415_1834.py | # Generated by Django 2.2.16 on 2021-04-15 12:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('brand', '0007_filial_unique_1c_filial_code'),
]
operations = [
migrations.RenameField(
model_name='filial',
old_name='uniqu... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,606 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/account/tests/factories.py | import factory
from django.contrib.auth import get_user_model
from apps.account.models import City
User = get_user_model()
class CityFactory(factory.django.DjangoModelFactory):
class Meta:
model = City
title = factory.Faker('city')
class UserFactory(factory.django.DjangoModelFactory):
phone =... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,607 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/tests/test_views.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from apps.info.models import (
Banner,
ProgramCondition,
Contact, PromotionAndNews,
)
from .factories import (
BannerFactory,
ProgramConditionFactory,
ContactFactory,
PromotionAndNe... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,608 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/views.py | from rest_framework import generics
from rest_framework.permissions import IsAuthenticated
from apps.notifications.models import Notification
from apps.notifications.pagination import LargeListNotificationPagination
from apps.notifications.serializers import NotificationSerializer
class NotificationAPIView(generics.... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,609 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/check/service.py | import uuid
import datetime
from apps.notifications.tasks import save_notification_and_send_fcm_for_check
class QRCodeService:
@staticmethod
def generate_qr_code():
unique_code = uuid.uuid4().int
return unique_code
@classmethod
def update_user_data(cls, user):
user.qr_code =... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,610 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/serializers.py | from rest_framework import serializers
from .models import AppVersion
class AppVersionSerializer(serializers.ModelSerializer):
class Meta:
model = AppVersion
fields = (
'android_version',
'android_force_update',
'ios_build_number',
'ios_version',
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,611 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/info/models.py | from datetime import datetime
from django.db import models
from solo.models import SingletonModel
from ckeditor_uploader.fields import RichTextUploadingField
from core.constants import INFORMATION_TYPE, NEWS
from core.utils import generate_filename
class Banner(SingletonModel):
title = models.CharField(
... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,612 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /core/settings/local.example.py | import environ
from rest_framework import permissions
env = environ.Env()
SECRET_KEY = env.str('DJANGO_SECRET_KEY', default='not secret)')
DEBUG = env.bool('DJANGO_DEBUG', default=True)
DATABASES = {
'default': env.db(
'DATABASE_URL', default='sqlite:///db.sqlite'
)
}
ALLOWED_HOSTS = env.list('DJA... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,613 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/notifications/migrations/0001_initial.py | # Generated by Django 2.2.16 on 2021-04-21 09:24
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_depende... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,614 | TimurAbdymazhinov/adeliya-backend | refs/heads/main | /apps/setting/tests/test_views.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from apps.setting.models import AppVersion
from .factories import AppVersionFactory
class AppVersionTest(APITestCase):
def setUp(self) -> None:
self.app_version = AppVersionFactory()
se... | {"/apps/info/views.py": ["/apps/brand/pagination.py", "/core/constants.py", "/apps/info/models.py", "/apps/info/serializers.py", "/apps/notifications/service.py"], "/apps/notifications/serializers.py": ["/apps/notifications/models.py"], "/apps/brand/urls.py": ["/apps/brand/views.py"], "/apps/check/urls.py": ["/apps/che... |
6,620 | calarts/othertownsend | refs/heads/master | /_config.py.example.py | # RENAME THIS FILE TO _config.py AND PUT A REAL TELEGRAM TOKEN INSIDE
# devothertowbsend
# t.me/devothertowbsend_bot
# TOKEN = "627805063:kpqwouepkjdlnasdmnlamsncv;lnsdc"
# other.townsend
# t.me/OtherTownsendBot
# /setinline
# /setuserpic
TOKEN = "746808563:klsadlkjasldkjlaksjdlasd"
DEBUG = True | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,621 | calarts/othertownsend | refs/heads/master | /vars.py | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# VARIABLES
# from vars import heartratedata, sleepdata, timepointdata, stepdata, lookdata
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
heartratedata = "data/heartrate.json"
# this is 24 hours of heart-rate sampled on... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,622 | calarts/othertownsend | refs/heads/master | /utils.py | import random
from datetime import datetime
import json, csv
from shapely.geometry import Point
from shapely.wkt import dumps, loads
from models import Person, Heart, Place, Step, Look, Conversation
from vars import heartratedata, sleepdata, timepointdata, stepdata, lookdata
# # # # # # # # # # # # # # # # # # # # #... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,623 | calarts/othertownsend | refs/heads/master | /ticker.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
"""
This Bot uses the Updater class to handle the bot
and the JobQueue to send timed messages.
First, a few handler functions are defined.
Then, those functions are passed to the Dispatcher
and registered at their respective places.
Then, the bot is started and runs ... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,624 | calarts/othertownsend | refs/heads/master | /commands.py | import logging
from datetime import datetime, date, timedelta, time
from models import Person
from utils import gimmeLongLat, gimmeGeojson
# buttons
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler
from models import Heart, Step
#... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,625 | calarts/othertownsend | refs/heads/master | /api.py | from datetime import datetime
from shapely.geometry import Point
from shapely.wkt import dumps, loads
from peewee import *
from flask import Flask, Blueprint
from flask_restplus import Resource, Api
from models import Person, Heart, Place, Step, Look, Conversation
from utils import gimmeLongLat, gimmeGeojson, gimmeSe... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,626 | calarts/othertownsend | refs/heads/master | /models.py | from random import choice
from datetime import time, datetime
from peewee import *
from shapely.wkt import dumps, loads
from _config import DEBUG
if DEBUG:
mydb = SqliteDatabase(':memory:')
else:
mydb = SqliteDatabase("other.db")
def gimmecurseconds():
now = datetime.now() # should be local time!
... | {"/utils.py": ["/models.py", "/vars.py"], "/ticker.py": ["/models.py", "/vars.py", "/utils.py", "/commands.py"], "/commands.py": ["/models.py", "/utils.py"], "/api.py": ["/models.py", "/utils.py"]} |
6,627 | yongduek/conv-ensemble-str | refs/heads/master | /utils/utils.py | # -*- coding: utf-8 -*-
import functools
import re
import tensorflow as tf
import inception_preprocessing
class CharsetMapper(object):
"""A simple class to map tensor ids into strings.
It works only when the character set is 1:1 mapping between individual
characters and individual ids.
Make sure you ca... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,628 | yongduek/conv-ensemble-str | refs/heads/master | /utils/hooks.py | """ Hooks used for learn.Experiment
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import abc
import os
import six
import tensorflow as tf
@six.add_metaclass(abc.ABCMeta)
class Prediction(tf.train.SessionRunHook)... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,629 | yongduek/conv-ensemble-str | refs/heads/master | /model/model.py | """ Top view model interface.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import logging
import yaml
import numpy as np
import tensorflow as tf
from tensorflow.contrib.learn import ModeKeys
from tenso... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,630 | yongduek/conv-ensemble-str | refs/heads/master | /train_eval.py | #!/usr/bin/env python
# Copyright 2017 IIE, CAS.
# Written by Shancheng Fang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,631 | yongduek/conv-ensemble-str | refs/heads/master | /utils/metrics.py | """Quality metrics for the model."""
import tensorflow as tf
def char_accuracy(predictions, labels, rej_char=0, streaming=True,
ignore_case=True):
""" Evaluate in character level.
"""
with tf.variable_scope('CharAccuracy'):
predictions.get_shape().assert_is_compatible_with(labels.get_shape... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,632 | yongduek/conv-ensemble-str | refs/heads/master | /model/decoder_conv.py | """Convoltuional decoder with attention and language ensemble.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import abc
import collections
import six
import tensorflow as tf
from tensorflow.contrib.learn import M... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,633 | yongduek/conv-ensemble-str | refs/heads/master | /config.py | # Copyright 2017 IIE, CAS.
# Written by Shancheng Fang
# ==============================================================================
"""Define flags are common for train_eval.py scripts."""
import tensorflow as tf
def define():
"""Define common flags."""
# yapf: disable
tf.flags.DEFINE_string("output_dir", ... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,634 | yongduek/conv-ensemble-str | refs/heads/master | /tools/make_tfrecord_datasets.py | #!/usr/bin/env python
""" A tool to convert mjsynth datasets to tfrecords datasets.
"""
import os
import tensorflow as tf
import cv2
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
SPLITS = ['train', 'test', 'val']
ORIGINAL_DIR = '/home/data/Dataset/mjsynth'
OUTPUT_DIR = '/home/data/Datase... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,635 | yongduek/conv-ensemble-str | refs/heads/master | /model/encoder_resnet.py | """Residual encoder.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import tensorflow as tf
from tensorflow.contrib.learn import ModeKeys
from tensorflow.contrib import slim
from tensorflow.contrib.slim.nets impor... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,636 | yongduek/conv-ensemble-str | refs/heads/master | /demo.py | #!/usr/bin/env python
# Copyright 2017-2018 IIE, CAS.
# Written by Shancheng Fang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,637 | yongduek/conv-ensemble-str | refs/heads/master | /datasets.py | # Copyright 2017 IIE, CAS.
# Written by Shancheng Fang
# ==============================================================================
"""Define base dataset.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
impor... | {"/model/model.py": ["/model/encoder_resnet.py", "/model/decoder_conv.py", "/utils/utils.py"], "/train_eval.py": ["/config.py", "/datasets.py", "/model/model.py", "/utils/hooks.py", "/utils/metrics.py"], "/demo.py": ["/model/model.py"]} |
6,638 | Tasha-Carty-220/asvs | refs/heads/master | /projects/views.py | from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from .models import Projects
import json
import hashlib
from django.conf import settings
from django.core.files import File
import os
def load_json_file(level):
results = []... | {"/projects/urls.py": ["/projects/views.py"]} |
6,639 | Tasha-Carty-220/asvs | refs/heads/master | /accountauth/urls.py | # Basic setup for allowing users to sign up using a username and a password
from django.conf.urls import url
from django.contrib.auth.views import LoginView, LogoutView
from .views import signup
urlpatterns = [
url(r'^signup/$', signup, name='signup'),
url(r'login$', LoginView.as_view(
template_name="... | {"/projects/urls.py": ["/projects/views.py"]} |
6,640 | Tasha-Carty-220/asvs | refs/heads/master | /levels/urls.py | from django.conf.urls import url
from .views import levels
urlpatterns = [
url(r'(?P<level>\d+)', levels, name="level"),
]
| {"/projects/urls.py": ["/projects/views.py"]} |
6,641 | Tasha-Carty-220/asvs | refs/heads/master | /projects/urls.py | from django.conf.urls import url
from .views import project_all, project_add, project_delete, project_view, project_update, project_download
urlpatterns = [
url(r'manage/', project_all, name='projectsmanage'),
url(r'_add/', project_add, name='projectsadd'),
url(r'_delete/(?P<projectid>\d+)', project_delet... | {"/projects/urls.py": ["/projects/views.py"]} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.