├── bot ├── test.py ├── keyboards │ ├── inline.py │ ├── __pycache__ │ │ ├── default.cpython-39.pyc │ │ └── inline.cpython-39.pyc │ └── default.py ├── __pycache__ │ ├── config.cpython-39.pyc │ └── states.cpython-39.pyc ├── config.py └── main.py ├── .gitignore ├── Core ├── __init__.py ├── __pycache__ │ ├── urls.cpython-38.pyc │ ├── urls.cpython-39.pyc │ ├── wsgi.cpython-38.pyc │ ├── wsgi.cpython-39.pyc │ ├── urls.cpython-310.pyc │ ├── urls.cpython-311.pyc │ ├── wsgi.cpython-310.pyc │ ├── wsgi.cpython-311.pyc │ ├── __init__.cpython-310.pyc │ ├── __init__.cpython-311.pyc │ ├── __init__.cpython-38.pyc │ ├── __init__.cpython-39.pyc │ ├── settings.cpython-310.pyc │ ├── settings.cpython-311.pyc │ ├── settings.cpython-38.pyc │ └── settings.cpython-39.pyc ├── asgi.py ├── wsgi.py ├── urls.py └── settings.py ├── UserApp ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-39.pyc │ │ └── 0001_initial.cpython-39.pyc │ └── 0001_initial.py ├── views.py ├── urls.py ├── tests.py ├── __pycache__ │ ├── admin.cpython-39.pyc │ ├── apps.cpython-39.pyc │ ├── models.cpython-39.pyc │ └── __init__.cpython-39.pyc ├── apps.py ├── admin.py ├── serializers.py └── models.py ├── .idea ├── .gitignore ├── dataSources │ ├── d6d5b5cc-aa4d-46f6-a44c-352b6b0ed9ff │ │ └── storage_v2 │ │ │ └── _src_ │ │ │ └── schema │ │ │ └── main.uQUzAA.meta │ └── d6d5b5cc-aa4d-46f6-a44c-352b6b0ed9ff.xml ├── vcs.xml ├── inspectionProfiles │ └── profiles_settings.xml ├── modules.xml ├── misc.xml ├── time-table-bot.iml ├── dataSources.local.xml └── dataSources.xml ├── db.sqlite3 ├── .env ├── requirements.txt ├── uploads ├── students │ ├── 6v.jpg │ ├── 10_a.jpg │ ├── 10_b.jpg │ ├── 10_d.jpg │ ├── 10_g.jpg │ ├── 10_v.jpg │ ├── 11_a.jpg │ ├── 11_b.jpg │ ├── 11_g.jpg │ ├── 11_v.jpg │ ├── 5_a.jpg │ ├── 5_b.jpg │ ├── 5_g.jpg │ ├── 5_v.jpg │ ├── 6_a.jpg │ ├── 6_b.jpg │ ├── 6_d.jpg │ ├── 6_g.jpg │ ├── 7_a.jpg │ ├── 7_b.jpg │ ├── 7_d.jpg │ ├── 7_g.jpg │ ├── 7_v.jpg │ ├── 8_a.jpg │ ├── 8_b.jpg │ ├── 8_d.jpg │ ├── 8_e.jpg │ ├── 8_g.jpg │ ├── 8_v.jpg │ ├── 9_a.jpg │ ├── 9_b.jpg │ ├── 9_d.jpg │ ├── 9_e.jpg │ ├── 9_g.jpg │ └── 9_v.jpg ├── calltimes │ ├── all.jpg │ ├── Пятница.jpg │ └── Четверг.jpg └── teacher │ ├── sultanov.jpg │ ├── yusupova.jpg │ ├── azimova.a.v.jpg │ ├── kulimbetov.jpg │ ├── nishanova.i.jpg │ ├── yuzikaeva.jpg │ ├── akbarova.d.a.jpg │ ├── djuraeva.s.a.jpg │ ├── dusmatov.j.a.jpg │ ├── mishonina.v.v.jpg │ ├── ochilova.x.b.jpg │ ├── ryabinina.v.a.jpg │ ├── timofeeva.t.v.jpg │ ├── abdraxmanov.b.k.jpg │ ├── allaniyazova.n.b.jpg │ ├── fedyushina.k.s.jpg │ ├── mustafaeva.a.ya.jpg │ ├── sulaymanov.b.g.jpg │ └── yuldasheva.l.b.jpg ├── docker-compose.yml ├── README.md ├── manage.py └── Dockerfile /bot/test.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | venv -------------------------------------------------------------------------------- /Core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /UserApp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /UserApp/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /UserApp/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | TOKEN=7035105679:AAEpUo_jaVYkt-RSXHRQd8QHDZcTZwuNmDQ 2 | ADMIN_ID=6812498519 -------------------------------------------------------------------------------- /UserApp/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .models import * 3 | 4 | -------------------------------------------------------------------------------- /UserApp/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/requirements.txt -------------------------------------------------------------------------------- /bot/keyboards/inline.py: -------------------------------------------------------------------------------- 1 | from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup 2 | -------------------------------------------------------------------------------- /uploads/students/6v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/6v.jpg -------------------------------------------------------------------------------- /uploads/calltimes/all.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/calltimes/all.jpg -------------------------------------------------------------------------------- /uploads/students/10_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/10_a.jpg -------------------------------------------------------------------------------- /uploads/students/10_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/10_b.jpg -------------------------------------------------------------------------------- /uploads/students/10_d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/10_d.jpg -------------------------------------------------------------------------------- /uploads/students/10_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/10_g.jpg -------------------------------------------------------------------------------- /uploads/students/10_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/10_v.jpg -------------------------------------------------------------------------------- /uploads/students/11_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/11_a.jpg -------------------------------------------------------------------------------- /uploads/students/11_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/11_b.jpg -------------------------------------------------------------------------------- /uploads/students/11_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/11_g.jpg -------------------------------------------------------------------------------- /uploads/students/11_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/11_v.jpg -------------------------------------------------------------------------------- /uploads/students/5_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/5_a.jpg -------------------------------------------------------------------------------- /uploads/students/5_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/5_b.jpg -------------------------------------------------------------------------------- /uploads/students/5_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/5_g.jpg -------------------------------------------------------------------------------- /uploads/students/5_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/5_v.jpg -------------------------------------------------------------------------------- /uploads/students/6_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/6_a.jpg -------------------------------------------------------------------------------- /uploads/students/6_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/6_b.jpg -------------------------------------------------------------------------------- /uploads/students/6_d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/6_d.jpg -------------------------------------------------------------------------------- /uploads/students/6_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/6_g.jpg -------------------------------------------------------------------------------- /uploads/students/7_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/7_a.jpg -------------------------------------------------------------------------------- /uploads/students/7_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/7_b.jpg -------------------------------------------------------------------------------- /uploads/students/7_d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/7_d.jpg -------------------------------------------------------------------------------- /uploads/students/7_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/7_g.jpg -------------------------------------------------------------------------------- /uploads/students/7_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/7_v.jpg -------------------------------------------------------------------------------- /uploads/students/8_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_a.jpg -------------------------------------------------------------------------------- /uploads/students/8_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_b.jpg -------------------------------------------------------------------------------- /uploads/students/8_d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_d.jpg -------------------------------------------------------------------------------- /uploads/students/8_e.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_e.jpg -------------------------------------------------------------------------------- /uploads/students/8_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_g.jpg -------------------------------------------------------------------------------- /uploads/students/8_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/8_v.jpg -------------------------------------------------------------------------------- /uploads/students/9_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_a.jpg -------------------------------------------------------------------------------- /uploads/students/9_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_b.jpg -------------------------------------------------------------------------------- /uploads/students/9_d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_d.jpg -------------------------------------------------------------------------------- /uploads/students/9_e.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_e.jpg -------------------------------------------------------------------------------- /uploads/students/9_g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_g.jpg -------------------------------------------------------------------------------- /uploads/students/9_v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/students/9_v.jpg -------------------------------------------------------------------------------- /uploads/teacher/sultanov.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/sultanov.jpg -------------------------------------------------------------------------------- /uploads/teacher/yusupova.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/yusupova.jpg -------------------------------------------------------------------------------- /uploads/calltimes/Пятница.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/calltimes/Пятница.jpg -------------------------------------------------------------------------------- /uploads/calltimes/Четверг.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/calltimes/Четверг.jpg -------------------------------------------------------------------------------- /uploads/teacher/azimova.a.v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/azimova.a.v.jpg -------------------------------------------------------------------------------- /uploads/teacher/kulimbetov.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/kulimbetov.jpg -------------------------------------------------------------------------------- /uploads/teacher/nishanova.i.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/nishanova.i.jpg -------------------------------------------------------------------------------- /uploads/teacher/yuzikaeva.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/yuzikaeva.jpg -------------------------------------------------------------------------------- /uploads/teacher/akbarova.d.a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/akbarova.d.a.jpg -------------------------------------------------------------------------------- /uploads/teacher/djuraeva.s.a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/djuraeva.s.a.jpg -------------------------------------------------------------------------------- /uploads/teacher/dusmatov.j.a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/dusmatov.j.a.jpg -------------------------------------------------------------------------------- /uploads/teacher/mishonina.v.v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/mishonina.v.v.jpg -------------------------------------------------------------------------------- /uploads/teacher/ochilova.x.b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/ochilova.x.b.jpg -------------------------------------------------------------------------------- /uploads/teacher/ryabinina.v.a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/ryabinina.v.a.jpg -------------------------------------------------------------------------------- /uploads/teacher/timofeeva.t.v.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/timofeeva.t.v.jpg -------------------------------------------------------------------------------- /Core/__pycache__/urls.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/urls.cpython-38.pyc -------------------------------------------------------------------------------- /Core/__pycache__/urls.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/urls.cpython-39.pyc -------------------------------------------------------------------------------- /Core/__pycache__/wsgi.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/wsgi.cpython-38.pyc -------------------------------------------------------------------------------- /Core/__pycache__/wsgi.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/wsgi.cpython-39.pyc -------------------------------------------------------------------------------- /uploads/teacher/abdraxmanov.b.k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/abdraxmanov.b.k.jpg -------------------------------------------------------------------------------- /uploads/teacher/allaniyazova.n.b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/allaniyazova.n.b.jpg -------------------------------------------------------------------------------- /uploads/teacher/fedyushina.k.s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/fedyushina.k.s.jpg -------------------------------------------------------------------------------- /uploads/teacher/mustafaeva.a.ya.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/mustafaeva.a.ya.jpg -------------------------------------------------------------------------------- /uploads/teacher/sulaymanov.b.g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/sulaymanov.b.g.jpg -------------------------------------------------------------------------------- /uploads/teacher/yuldasheva.l.b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/uploads/teacher/yuldasheva.l.b.jpg -------------------------------------------------------------------------------- /Core/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /Core/__pycache__/urls.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/urls.cpython-311.pyc -------------------------------------------------------------------------------- /Core/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /Core/__pycache__/wsgi.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/wsgi.cpython-311.pyc -------------------------------------------------------------------------------- /bot/__pycache__/config.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/bot/__pycache__/config.cpython-39.pyc -------------------------------------------------------------------------------- /bot/__pycache__/states.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/bot/__pycache__/states.cpython-39.pyc -------------------------------------------------------------------------------- /Core/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /Core/__pycache__/__init__.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/__init__.cpython-311.pyc -------------------------------------------------------------------------------- /Core/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /Core/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /Core/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /Core/__pycache__/settings.cpython-311.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/settings.cpython-311.pyc -------------------------------------------------------------------------------- /Core/__pycache__/settings.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/settings.cpython-38.pyc -------------------------------------------------------------------------------- /Core/__pycache__/settings.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/Core/__pycache__/settings.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/__pycache__/admin.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/__pycache__/admin.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/__pycache__/apps.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/__pycache__/apps.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/__pycache__/models.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/__pycache__/models.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /bot/config.py: -------------------------------------------------------------------------------- 1 | from environs import Env 2 | 3 | env = Env() 4 | env.read_env() 5 | 6 | TOKEN = env.str("TOKEN") 7 | ADMIN_ID = env.str("ADMIN_ID") -------------------------------------------------------------------------------- /bot/keyboards/__pycache__/default.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/bot/keyboards/__pycache__/default.cpython-39.pyc -------------------------------------------------------------------------------- /bot/keyboards/__pycache__/inline.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/bot/keyboards/__pycache__/inline.cpython-39.pyc -------------------------------------------------------------------------------- /.idea/dataSources/d6d5b5cc-aa4d-46f6-a44c-352b6b0ed9ff/storage_v2/_src_/schema/main.uQUzAA.meta: -------------------------------------------------------------------------------- 1 | #n:main 2 | ! [0, 0, null, null, -2147483648, -2147483648] 3 | -------------------------------------------------------------------------------- /UserApp/migrations/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/migrations/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/migrations/__pycache__/0001_initial.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d1yas/time-table-bot/HEAD/UserApp/migrations/__pycache__/0001_initial.cpython-39.pyc -------------------------------------------------------------------------------- /UserApp/apps.py: -------------------------------------------------------------------------------- 1 | 2 | from django.apps import AppConfig 3 | 4 | 5 | class UserappConfig(AppConfig): 6 | default_auto_field = 'django.db.models.BigAutoField' 7 | name = 'UserApp' 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /UserApp/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import StudentsTable, TeacherTableModel, CallTimesModel 3 | 4 | admin.site.register(StudentsTable) 5 | admin.site.register(TeacherTableModel) 6 | admin.site.register(CallTimesModel) -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | web: 5 | build: . 6 | command: sh -c "python manage.py runserver 0.0.0.0:8000" 7 | volumes: 8 | - .:/code 9 | - ./bot:/bot 10 | ports: 11 | - "8000:8000" 12 | 13 | bot: 14 | build: . 15 | command: python /bot/main.py 16 | volumes: 17 | - ./bot:/bot 18 | depends_on: 19 | - web -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | -------------------------------------------------------------------------------- /.idea/time-table-bot.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Core/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for Core project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Core.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /Core/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for Core project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Core.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /bot/keyboards/default.py: -------------------------------------------------------------------------------- 1 | from aiogram.types import ReplyKeyboardMarkup, KeyboardButton 2 | 3 | keyboard_def = ReplyKeyboardMarkup( 4 | keyboard=[ 5 | [ 6 | KeyboardButton(text='Расписание классов🧑‍🎓') 7 | ], 8 | [ 9 | KeyboardButton(text='Расписание учителей👩‍🏫') 10 | ], 11 | [ 12 | KeyboardButton(text='Время Звонков🕔') 13 | ], 14 | ], resize_keyboard=True 15 | ) 16 | -------------------------------------------------------------------------------- /UserApp/serializers.py: -------------------------------------------------------------------------------- 1 | from rest_framework import serializers 2 | from .models import StudentsTable, TeacherTableModel, CallTimesModel 3 | 4 | 5 | class TeacherSrl(serializers.ModelSerializer): 6 | class Meta: 7 | model = TeacherTableModel 8 | fields = "__all__" 9 | 10 | 11 | class StudentSrl(serializers.ModelSerializer): 12 | class Meta: 13 | model = StudentsTable 14 | fields = "__all__" 15 | 16 | 17 | class CallTimesSrl(serializers.ModelSerializer): 18 | model = CallTimesModel 19 | fields = "__all__" 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TameTable Telegaram-Bot 2 | 3 | ## Сode execution order 4 | 5 | ## 1) 6 | ``` 7 | python -m venv venv 8 | ``` 9 | ## 2) 10 | ```angular2html 11 | venv/Scripts/activate 12 | ``` 13 | ### or 14 | ```angular2html 15 | source venv/bin/activate 16 | ``` 17 | ## 3) 18 | ```angular2html 19 | pip install -r requirements.txt 20 | ``` 21 | ## 4) 22 | 23 | ```angular2html 24 | python manage.py makemigrations 25 | ``` 26 | 27 | ## 5) 28 | 29 | ```angular2html 30 | python manage.py migrate 31 | ``` 32 | ## 6) create your superuser 33 | ```angular2html 34 | python manage.py createsuperuser 35 | 36 | ``` 37 | ## 7) 38 | 39 | ```angular2html 40 | python bot/main.py 41 | ``` -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Core.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Use an official Python runtime as a parent image 2 | FROM python:3.9 3 | 4 | # Set environment variables 5 | ENV PYTHONDONTWRITEBYTECODE 1 6 | ENV PYTHONUNBUFFERED 1 7 | 8 | # Set the working directory in the container 9 | WORKDIR /code 10 | 11 | # Copy the current directory contents into the container at /code 12 | COPY . /code/ 13 | 14 | # Install dependencies 15 | RUN pip install --upgrade pip 16 | RUN pip install -r requirements.txt 17 | 18 | # Set working directory for the bot 19 | WORKDIR /bot 20 | 21 | # Copy the bot files into the container at /bot 22 | COPY ./bot /bot/ 23 | 24 | # Set working directory back to /code 25 | WORKDIR /code 26 | 27 | # Expose the port for the Django app 28 | EXPOSE 8000 29 | 30 | # Command to run both Django app and bot 31 | CMD ["sh", "-c", "python manage.py runserver 0.0.0.0:8000 & python /bot/main.py"] -------------------------------------------------------------------------------- /.idea/dataSources.local.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | " 7 | 8 | 9 | no-auth 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | sqlite.xerial 6 | true 7 | org.sqlite.JDBC 8 | jdbc:sqlite:C:\Users\steam\PycharmProjects\time-table-bot\db.sqlite3 9 | $ProjectFileDir$ 10 | 11 | 12 | file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/xerial/sqlite-jdbc/3.45.1.0/sqlite-jdbc-3.45.1.0.jar 13 | 14 | 15 | file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar 16 | 17 | 18 | file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.43.0/org/xerial/sqlite-jdbc/3.43.0.0/sqlite-jdbc-3.43.0.0.jar 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /UserApp/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | import os 3 | 4 | 5 | class TeacherTableModel(models.Model): 6 | FIO_Teacher = models.CharField(max_length=225, unique=True) 7 | photo = models.ImageField(upload_to="uploads/teacher/", null=True) 8 | 9 | def __str__(self): 10 | return self.FIO_Teacher 11 | 12 | 13 | class StudentsTable(models.Model): 14 | class_number = models.IntegerField() 15 | type_choise = ( 16 | ("А", "A"), 17 | ("Б", "Б"), 18 | ("В", "В"), 19 | ("Г", "Г"), 20 | ("Д", "Д"), 21 | ("Е", "Е"), 22 | ) 23 | class_type = models.CharField(choices=type_choise, max_length=225) 24 | table_photo = models.ImageField(upload_to="uploads/students/") 25 | 26 | def __str__(self): 27 | return "{} {}".format(self.class_number, self.class_type) 28 | 29 | 30 | class CallTimesModel(models.Model): 31 | CHOICES = ( 32 | ("Понедельник, Вторник, Среда, Суббота", "Понедельник, Вторник, Среда, Суббота"), 33 | ("Четверг", "Четверг"), 34 | ("Пятница", "Пятница") 35 | ) 36 | hafta_kuni = models.CharField(choices=CHOICES, max_length=225, unique=True) 37 | time_photo = models.ImageField(upload_to="uploads/calltimes/") 38 | 39 | def __str__(self): 40 | return self.hafta_kuni 41 | -------------------------------------------------------------------------------- /Core/urls.py: -------------------------------------------------------------------------------- 1 | """ 2 | URL configuration for Core project. 3 | 4 | The `urlpatterns` list routes URLs to views. For more information please see: 5 | https://docs.djangoproject.com/en/4.2/topics/http/urls/ 6 | Examples: 7 | Function views 8 | 1. Add an import: from my_app import views 9 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 10 | Class-based views 11 | 1. Add an import: from other_app.views import Home 12 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 13 | Including another URLconf 14 | 1. Import the include() function: from django.urls import include, path 15 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 16 | """ 17 | from django.contrib import admin 18 | from django.urls import path, include 19 | from Core import settings 20 | 21 | from django.conf.urls.static import static 22 | from django.contrib import admin 23 | from django.urls import path, include 24 | from django.conf.urls.static import static 25 | from rest_framework import permissions 26 | from drf_yasg.views import get_schema_view 27 | from drf_yasg import openapi 28 | from Core import settings 29 | 30 | schema_view = get_schema_view( 31 | openapi.Info( 32 | title="Snippets API", 33 | default_version='v1', 34 | description="Test description", 35 | terms_of_service="https://www.google.com/policies/terms/", 36 | contact=openapi.Contact(email="contact@snippets.local"), 37 | license=openapi.License(name="BSD License"), 38 | ), 39 | public=True, 40 | permission_classes=[permissions.AllowAny], 41 | ) 42 | 43 | urlpatterns = [ 44 | path('', admin.site.urls), 45 | # path('', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), 46 | ]+static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) 47 | -------------------------------------------------------------------------------- /UserApp/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.2.8 on 2024-05-04 12:26 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='CallTimesModel', 16 | fields=[ 17 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('hafta_kuni', models.CharField(choices=[('Понедельник, Вторник, Среда, Суббота', 'Понедельник, Вторник, Среда, Суббота'), ('Четверг', 'Четверг'), ('Пятница', 'Пятница')], max_length=225, unique=True)), 19 | ('time_photo', models.ImageField(upload_to='uploads/calltimes/')), 20 | ], 21 | ), 22 | migrations.CreateModel( 23 | name='StudentsTable', 24 | fields=[ 25 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 26 | ('class_number', models.IntegerField()), 27 | ('class_type', models.CharField(choices=[('А', 'A'), ('Б', 'Б'), ('В', 'В'), ('Г', 'Г'), ('Д', 'Д'), ('Е', 'Е')], max_length=225)), 28 | ('table_photo', models.ImageField(upload_to='uploads/students/')), 29 | ], 30 | ), 31 | migrations.CreateModel( 32 | name='TeacherTableModel', 33 | fields=[ 34 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 35 | ('FIO_Teacher', models.CharField(max_length=225, unique=True)), 36 | ('photo', models.ImageField(null=True, upload_to='uploads/teacher/')), 37 | ], 38 | ), 39 | ] 40 | -------------------------------------------------------------------------------- /Core/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for Core project. 3 | 4 | Generated by 'django-admin startproject' using Django 4.2.8. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.2/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/4.2/ref/settings/ 11 | """ 12 | 13 | from pathlib import Path 14 | import os 15 | import sys 16 | 17 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 18 | BASE_DIR = Path(__file__).resolve().parent.parent 19 | 20 | # Quick-start development settings - unsuitable for production 21 | # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ 22 | 23 | # SECURITY WARNING: keep the secret key used in production secret! 24 | SECRET_KEY = 'django-insecure-paoffc1flm8k#=&47tc^u$glc_x*++hw&%(p^4cy*^-$)pw$zu' 25 | 26 | # SECURITY WARNING: don't run with debug turned on in production! 27 | DEBUG = True 28 | 29 | ALLOWED_HOSTS = ["*"] 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'jazzmin', 35 | 'django.contrib.admin', 36 | 'django.contrib.auth', 37 | 'django.contrib.contenttypes', 38 | 'django.contrib.sessions', 39 | 'django.contrib.messages', 40 | 'django.contrib.staticfiles', 41 | 'corsheaders', 42 | 'UserApp', 43 | 'rest_framework', 44 | 'rest_framework_simplejwt', 45 | 'drf_yasg', 46 | 47 | 48 | ] 49 | REST_FRAMEWORK = { 50 | 'DEFAULT_AUTHENTICATION_CLASSES': ( 51 | 'rest_framework_simplejwt.authentication.JWTAuthentication', 52 | ) 53 | } 54 | 55 | MIDDLEWARE = [ 56 | 'django.middleware.security.SecurityMiddleware', 57 | 'django.contrib.sessions.middleware.SessionMiddleware', 58 | 'django.middleware.common.CommonMiddleware', 59 | 'django.middleware.csrf.CsrfViewMiddleware', 60 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 61 | 'django.contrib.messages.middleware.MessageMiddleware', 62 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 63 | ] 64 | 65 | ROOT_URLCONF = 'Core.urls' 66 | 67 | TEMPLATES = [ 68 | { 69 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 70 | 'DIRS': [], 71 | 'APP_DIRS': True, 72 | 'OPTIONS': { 73 | 'context_processors': [ 74 | 'django.template.context_processors.debug', 75 | 'django.template.context_processors.request', 76 | 'django.contrib.auth.context_processors.auth', 77 | 'django.contrib.messages.context_processors.messages', 78 | ], 79 | }, 80 | }, 81 | ] 82 | 83 | WSGI_APPLICATION = 'Core.wsgi.application' 84 | 85 | # Database 86 | # https://docs.djangoproject.com/en/4.2/ref/settings/#databases 87 | 88 | DATABASES = { 89 | 'default': { 90 | 'ENGINE': 'django.db.backends.sqlite3', 91 | 'NAME': BASE_DIR / 'db.sqlite3', 92 | } 93 | } 94 | 95 | # Password validation 96 | # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators 97 | 98 | AUTH_PASSWORD_VALIDATORS = [ 99 | { 100 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 101 | }, 102 | { 103 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 104 | }, 105 | { 106 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 107 | }, 108 | { 109 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 110 | }, 111 | ] 112 | 113 | # Internationalization 114 | # https://docs.djangoproject.com/en/4.2/topics/i18n/ 115 | 116 | LANGUAGE_CODE = 'en-us' 117 | 118 | TIME_ZONE = 'UTC' 119 | 120 | USE_I18N = True 121 | 122 | USE_TZ = True 123 | 124 | # Static files (CSS, JavaScript, Images) 125 | 126 | CORS_ALLOW_ALL_ORIGINS = True 127 | CORS_ORIGIN_ALLOW_ALL = True 128 | 129 | CORS_ALLOW_METHODS = [ 130 | "DELETE", 131 | "GET", 132 | "OPTIONS", 133 | "PATCH", 134 | "POST", 135 | "PUT", 136 | ] 137 | SWAGGER_SETTINGS = { 138 | "DEFAULT_GENERATOR_CLASS": "drf_yasg.generators.OpenAPISchemaGenerator", 139 | # Other Swagger settings... 140 | } 141 | 142 | STATIC_URL = '/static/' 143 | STATIC_ROOT = BASE_DIR / 'static' # Corrected STATIC_ROOT definition 144 | 145 | # Default primary key field type 146 | # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field 147 | 148 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' 149 | -------------------------------------------------------------------------------- /bot/main.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import sqlite3 3 | from aiogram import Bot, Dispatcher, executor, types 4 | from aiogram.contrib.middlewares.logging import LoggingMiddleware 5 | from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup, ParseMode 6 | from aiogram.dispatcher import FSMContext 7 | from aiogram.dispatcher.filters.state import State, StatesGroup 8 | from aiogram.contrib.fsm_storage.memory import MemoryStorage 9 | from keyboards.default import keyboard_def 10 | from config import ADMIN_ID, TOKEN 11 | 12 | 13 | UPLOADS = "C:/Users/steam/PycharmProjects/time-table-bot/" 14 | connect = sqlite3.connect("C:/Users/steam/PycharmProjects/time-table-bot/db.sqlite3", check_same_thread=False) 15 | cursor = connect.cursor() 16 | 17 | logging.basicConfig(level=logging.INFO) 18 | bot = Bot(token=TOKEN) 19 | dp = Dispatcher(bot, storage=MemoryStorage()) 20 | 21 | 22 | async def send_message_to_admin(user: types.User, message_text: str): 23 | await bot.send_message(ADMIN_ID, f"Этот пользователь @{user.username} ({user.id}) написал: \"{message_text}\"") 24 | 25 | 26 | # state 27 | class Shogirdchala(StatesGroup): 28 | list_class = State() 29 | class_data = State() 30 | teacher_data = State() 31 | zvanok = State() 32 | 33 | 34 | # Handlers 35 | @dp.message_handler(commands='start') 36 | async def process_start_command(message: types.Message): 37 | user = message.from_user 38 | message_text = message.text 39 | await send_message_to_admin(user, message_text) 40 | await message.answer("Добро Пожаловать", reply_markup=keyboard_def) 41 | 42 | 43 | 44 | 45 | @dp.message_handler(text="Расписание классов🧑‍🎓") 46 | async def class_schedule(message: types.Message, state: FSMContext): 47 | user = message.from_user 48 | message_text = message.text 49 | await send_message_to_admin(user, message_text) 50 | await message.delete() 51 | button_list = [InlineKeyboardButton(text=str(i) + " " + "класс", callback_data=str(i)) for i in range(5, 12)] 52 | keyboard = InlineKeyboardMarkup(row_width=1) 53 | keyboard.add(*button_list, ) 54 | await message.answer("Выберите ваш класс : ", reply_markup=keyboard) 55 | await Shogirdchala.list_class.set() 56 | 57 | 58 | 59 | 60 | @dp.callback_query_handler(state=Shogirdchala.list_class) 61 | async def sinf_jadvali(call: types.CallbackQuery, state: FSMContext): 62 | await call.message.delete() 63 | class_number = int(call.data) 64 | cursor.execute("SELECT * FROM UserApp_studentstable WHERE class_number = ?", (class_number,)) 65 | result = cursor.fetchall() 66 | keyboard = InlineKeyboardMarkup(row_width=1) 67 | for i in result: 68 | button_text = f"{i[1]} {i[2]}" 69 | button_callback_data = f"{i[0]}" 70 | button = InlineKeyboardButton(text=button_text, callback_data=button_callback_data) 71 | keyboard.add(button) 72 | await call.message.answer(str(class_number), reply_markup=keyboard) 73 | user = call.message.from_user 74 | call_text = call.message 75 | await send_message_to_admin(user, call_text) 76 | await state.finish() 77 | await Shogirdchala.class_data.set() 78 | 79 | 80 | 81 | 82 | @dp.callback_query_handler(state=Shogirdchala.class_data) 83 | async def classss(call: types.CallbackQuery, state: FSMContext): 84 | await call.message.delete() 85 | data = int(call.data) 86 | cursor.execute("SELECT * FROM UserApp_studentstable WHERE id = ?", (data,)) 87 | result = cursor.fetchall() 88 | photo = open(f'{UPLOADS}{result[0][3]}', 'rb') 89 | caption = f"Класс: {result[0][1]} {result[0][2]}" 90 | await call.message.answer_photo(photo=photo, caption=caption) 91 | user = call.message.from_user 92 | call_text = call.message 93 | await send_message_to_admin(user, call_text) 94 | await state.finish() 95 | 96 | 97 | 98 | 99 | @dp.message_handler(text="Расписание учителей👩‍🏫") 100 | async def list_teacherss(message: types.Message): 101 | user = message.from_user 102 | message_text = message.text 103 | await send_message_to_admin(user, message_text) 104 | await message.delete() 105 | teachers_data = cursor.execute("SELECT * FROM UserApp_teachertablemodel ").fetchall() 106 | if teachers_data: 107 | keyboard = InlineKeyboardMarkup(row_width=4) 108 | for i in teachers_data: 109 | button = InlineKeyboardButton(text=str(i[1]), callback_data=str(i[1])) 110 | keyboard.add(button) 111 | await message.answer("Список Учителей", reply_markup=keyboard) 112 | await Shogirdchala.teacher_data.set() 113 | else: 114 | await message.answer("Error!\nРасписание для учителя в данный момент отсутствует") 115 | 116 | 117 | 118 | 119 | @dp.callback_query_handler(state=Shogirdchala.teacher_data) 120 | async def teacheddata(call: types.CallbackQuery, state: FSMContext): 121 | await call.message.delete() 122 | data = str(call.data) 123 | result = cursor.execute("SELECT * FROM UserApp_teachertablemodel WHERE fio_teacher = ?", (data,)).fetchone() 124 | photo = open(f'{UPLOADS}{result[2]}', 'rb') 125 | await call.message.answer_photo(photo=photo, caption=f""" 126 | ФИО: {result[1]} 127 | """) 128 | user = call.message.from_user 129 | call_text = call.message 130 | await send_message_to_admin(user, call_text) 131 | await state.finish() 132 | 133 | 134 | 135 | 136 | @dp.message_handler(text='Время Звонков🕔') 137 | async def chiqishvaqt(message: types.Message): 138 | user = message.from_user 139 | message_text = message.text 140 | await send_message_to_admin(user, message_text) 141 | await message.delete() 142 | data = cursor.execute("SELECT * FROM UserApp_calltimesmodel ").fetchall() 143 | keyboard = InlineKeyboardMarkup(row_width=2) 144 | for i in data: 145 | button = InlineKeyboardButton(text=str(i[1]), callback_data=str(i[0])) 146 | keyboard.add(button) 147 | await message.answer("Время звонков:", reply_markup=keyboard) 148 | await Shogirdchala.zvanok.set() 149 | 150 | 151 | 152 | 153 | @dp.callback_query_handler(state=Shogirdchala.zvanok) 154 | async def zvanokjadval(call: types.CallbackQuery, state: FSMContext): 155 | await call.message.delete() 156 | data = int(call.data) 157 | i = cursor.execute("SELECT * FROM UserApp_calltimesmodel where id = ?", (data,)).fetchone() 158 | photo = open(f'{UPLOADS}{i[2]}', 'rb') 159 | await call.message.answer_photo(photo=photo, caption=f""" 160 | День: {i[1]} 161 | """) 162 | user = call.message.from_user 163 | call_text = call.message 164 | await send_message_to_admin(user, call_text) 165 | await state.finish() 166 | 167 | 168 | 169 | 170 | @dp.message_handler(commands={"help"}) 171 | async def tex(message: types.Message): 172 | user = message.from_user 173 | message_text = message.text 174 | await send_message_to_admin(user, message_text) 175 | await message.answer(f""" 176 | Если возникли какие-то проблемы , 177 | Напишите @backend_developer_d 178 | 179 | """) 180 | 181 | 182 | if __name__ == '__main__': 183 | executor.start_polling(dp, skip_updates=True) 184 | -------------------------------------------------------------------------------- /.idea/dataSources/d6d5b5cc-aa4d-46f6-a44c-352b6b0ed9ff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3.45.1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 1 23 | 24 | 25 | 1 26 | 27 | 28 | 1 29 | 30 | 31 | 1 32 | 33 | 34 | 1 35 | 36 | 37 | 1 38 | 39 | 40 | 1 41 | 42 | 43 | 1 44 | 45 | 46 | 1 47 | 48 | 49 | 1 50 | 51 | 52 | 53 | window 54 | 55 | 56 | 1 57 | 58 | 59 | 1 60 | 61 | 62 | 1 63 | 64 | 65 | 66 | 1 67 | 1 68 | 69 | 70 | 71 | 72 | 1 73 | 1 74 | 75 | 76 | 1 77 | 1 78 | 79 | 80 | 1 81 | 1 82 | 83 | 84 | 1 85 | 86 | 87 | 1 88 | 89 | 90 | 91 | 92 | window 93 | 94 | 95 | window 96 | 97 | 98 | 99 | 100 | 101 | 1 102 | 1 103 | 104 | 105 | 1 106 | 1 107 | 108 | 109 | 1 110 | 111 | 112 | window 113 | 114 | 115 | 116 | 1 117 | 118 | 119 | window 120 | 121 | 122 | 1 123 | 124 | 125 | 1 126 | 1 127 | 128 | 129 | 130 | 131 | 132 | 1 133 | 134 | 135 | 1 136 | 137 | 138 | window 139 | 140 | 141 | 1 142 | 143 | 144 | 1 145 | 146 | 147 | 1 148 | 149 | 150 | 1 151 | 152 | 153 | 1 154 | 155 | 156 | 1 157 | 158 | 159 | 1 160 | 1 161 | 162 | 163 | 1 164 | 165 | 166 | 1 167 | 168 | 169 | 1 170 | 1 171 | 172 | 173 | 1 174 | window 175 | 176 | 177 | 1 178 | window 179 | 180 | 181 | 1 182 | 1 183 | 184 | 185 | 1 186 | 1 187 | 188 | 189 | 1 190 | 191 | 192 | 1 193 | 194 | 195 | 1 196 | 1 197 | 198 | 199 | 1 200 | 1 201 | 202 | 203 | 1 204 | 1 205 | 206 | 207 | 1 208 | 209 | 210 | 1 211 | 212 | 213 | 1 214 | 215 | 216 | 1 217 | 1 218 | 219 | 220 | 1 221 | 1 222 | 223 | 224 | 1 225 | window 226 | 227 | 228 | 1 229 | window 230 | 231 | 232 | 1 233 | 1 234 | 235 | 236 | 1 237 | 1 238 | 239 | 240 | 1 241 | 242 | 243 | 1 244 | 1 245 | 246 | 247 | 1 248 | 1 249 | 250 | 251 | 1 252 | 1 253 | 254 | 255 | 1 256 | 1 257 | 258 | 259 | window 260 | 261 | 262 | window 263 | 264 | 265 | 266 | window 267 | 268 | 269 | window 270 | 271 | 272 | window 273 | 274 | 275 | 276 | 1 277 | 278 | 279 | 1 280 | 281 | 282 | 1 283 | 284 | 285 | 1 286 | 287 | 288 | 1 289 | 290 | 291 | 292 | 1 293 | 294 | 295 | 1 296 | 297 | 298 | 1 299 | 300 | 301 | 1 302 | 303 | 304 | aggregate 305 | 306 | 307 | 1 308 | 309 | 310 | 311 | 312 | 313 | 1 314 | 1 315 | 316 | 317 | window 318 | 319 | 320 | aggregate 321 | 322 | 323 | 1 324 | 1 325 | 326 | 327 | window 328 | 329 | 330 | 1 331 | 332 | 333 | aggregate 334 | 335 | 336 | window 337 | 338 | 339 | window 340 | 341 | 342 | 1 343 | 344 | 345 | 1 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | window 354 | 355 | 356 | 1 357 | 358 | 359 | 1 360 | 361 | 362 | 1 363 | 364 | 365 | 1 366 | 1 367 | 368 | 369 | 370 | 1 371 | 372 | 373 | 1 374 | 375 | 376 | 377 | 378 | window 379 | 380 | 381 | 1 382 | 383 | 384 | 1 385 | 386 | 387 | 388 | 389 | 390 | 1 391 | 392 | 393 | window 394 | 395 | 396 | 1 397 | 398 | 399 | 400 | 401 | 1 402 | 403 | 404 | 1 405 | 406 | 407 | 1 408 | 409 | 410 | 1 411 | 412 | 413 | 1 414 | 415 | 416 | 417 | 418 | 1 419 | 420 | 421 | 422 | 423 | 1 424 | 425 | 426 | 427 | aggregate 428 | 429 | 430 | 431 | 1 432 | 1 433 | 434 | 435 | window 436 | 437 | 438 | 1 439 | 440 | 441 | 1 442 | 443 | 444 | 1 445 | 446 | 447 | window 448 | 449 | 450 | 1 451 | 452 | 453 | 1 454 | 455 | 456 | 1 457 | 1 458 | 459 | 460 | 1 461 | 462 | 463 | window 464 | 465 | 466 | 467 | 1 468 | 469 | 470 | 1 471 | 472 | 473 | 1 474 | 475 | 476 | 1 477 | 478 | 479 | 1 480 | 481 | 482 | 1 483 | 1 484 | 485 | 486 | 1 487 | 488 | 489 | 1 490 | 491 | 492 | aggregate 493 | 494 | 495 | aggregate 496 | 497 | 498 | 1 499 | 500 | 501 | 1 502 | 2024-04-23.14:56:32 503 | 504 | 505 | R 506 | 507 | 508 | 1 509 | 510 | 511 | 2 512 | 513 | 514 | R 515 | 516 | 517 | 1 518 | 519 | 520 | 2 521 | 522 | 523 | R 524 | 525 | 526 | 1 527 | 528 | 529 | R 530 | 531 | 532 | 1 533 | 534 | 535 | R 536 | 537 | 538 | 1 539 | 540 | 541 | R 542 | 543 | 544 | 1 545 | 546 | 547 | R 548 | 549 | 550 | 1 551 | 552 | 553 | R 554 | 555 | 556 | 1 557 | 558 | 559 | R 560 | 561 | 562 | 1 563 | 564 | 565 | 2 566 | 567 | 568 | R 569 | 570 | 571 | 1 572 | 573 | 574 | R 575 | 576 | 577 | 1 578 | 579 | 580 | 2 581 | 582 | 583 | R 584 | 585 | 586 | 1 587 | 588 | 589 | R 590 | 591 | 592 | R 593 | 594 | 595 | 1 596 | 597 | 598 | R 599 | 600 | 601 | 1 602 | 603 | 604 | R 605 | 606 | 607 | R 608 | 609 | 610 | R 611 | 612 | 613 | 1 614 | 615 | 616 | 2 617 | 618 | 619 | R 620 | 621 | 622 | 1 623 | 624 | 625 | 2 626 | 627 | 628 | 3 629 | 630 | 631 | R 632 | 633 | 634 | R 635 | 636 | 637 | R 638 | 639 | 640 | R 641 | 642 | 643 | 1 644 | 645 | 646 | R 647 | 648 | 649 | 1 650 | 651 | 652 | R 653 | 654 | 655 | 1 656 | 657 | 658 | R 659 | 660 | 661 | 1 662 | 663 | 664 | R 665 | 666 | 667 | 1 668 | 669 | 670 | R 671 | 672 | 673 | R 674 | 675 | 676 | R 677 | 678 | 679 | R 680 | 681 | 682 | R 683 | 684 | 685 | R 686 | 687 | 688 | R 689 | 690 | 691 | 1 692 | 693 | 694 | R 695 | 696 | 697 | R 698 | 699 | 700 | 1 701 | 702 | 703 | 2 704 | 705 | 706 | R 707 | 708 | 709 | 1 710 | 711 | 712 | R 713 | 714 | 715 | 1 716 | 717 | 718 | R 719 | 720 | 721 | 1 722 | 723 | 724 | R 725 | 726 | 727 | R 728 | 729 | 730 | 1 731 | 732 | 733 | R 734 | 735 | 736 | 1 737 | 738 | 739 | 2 740 | 741 | 742 | R 743 | 744 | 745 | 1 746 | 747 | 748 | R 749 | 750 | 751 | R 752 | 753 | 754 | 1 755 | 756 | 757 | 2 758 | 759 | 760 | R 761 | 762 | 763 | 1 764 | 765 | 766 | 2 767 | 768 | 769 | R 770 | 771 | 772 | 1 773 | 774 | 775 | R 776 | 777 | 778 | R 779 | 780 | 781 | 1 782 | 783 | 784 | 2 785 | 786 | 787 | R 788 | 789 | 790 | 1 791 | 792 | 793 | 2 794 | 795 | 796 | 3 797 | 798 | 799 | R 800 | 801 | 802 | 1 803 | 804 | 805 | 2 806 | 807 | 808 | R 809 | 810 | 811 | 1 812 | 813 | 814 | R 815 | 816 | 817 | R 818 | 819 | 820 | 1 821 | 822 | 823 | 2 824 | 825 | 826 | R 827 | 828 | 829 | 1 830 | 831 | 832 | R 833 | 834 | 835 | R 836 | 837 | 838 | 1 839 | 840 | 841 | R 842 | 843 | 844 | 1 845 | 846 | 847 | 2 848 | 849 | 850 | R 851 | 852 | 853 | R 854 | 855 | 856 | R 857 | 858 | 859 | 1 860 | 861 | 862 | 2 863 | 864 | 865 | R 866 | 867 | 868 | 1 869 | 870 | 871 | R 872 | 873 | 874 | R 875 | 876 | 877 | R 878 | 879 | 880 | R 881 | 882 | 883 | 1 884 | 885 | 886 | 2 887 | 888 | 889 | R 890 | 891 | 892 | 1 893 | 894 | 895 | 2 896 | 897 | 898 | R 899 | 900 | 901 | 1 902 | 903 | 904 | R 905 | 906 | 907 | R 908 | 909 | 910 | R 911 | 912 | 913 | 1 914 | 915 | 916 | R 917 | 918 | 919 | 1 920 | 921 | 922 | 2 923 | 924 | 925 | R 926 | 927 | 928 | R 929 | 930 | 931 | R 932 | 933 | 934 | 1 935 | 936 | 937 | 2 938 | 939 | 940 | R 941 | 942 | 943 | R 944 | 945 | 946 | R 947 | 948 | 949 | R 950 | 951 | 952 | R 953 | 954 | 955 | 1 956 | 957 | 958 | 2 959 | 960 | 961 | R 962 | 963 | 964 | 1 965 | 966 | 967 | 2 968 | 969 | 970 | 3 971 | 972 | 973 | R 974 | 975 | 976 | R 977 | 978 | 979 | 1 980 | 981 | 982 | R 983 | 984 | 985 | 1 986 | 987 | 988 | 2 989 | 990 | 991 | R 992 | 993 | 994 | 1 995 | 996 | 997 | 2 998 | 999 | 1000 | 3 1001 | 1002 | 1003 | R 1004 | 1005 | 1006 | 1 1007 | 1008 | 1009 | 2 1010 | 1011 | 1012 | R 1013 | 1014 | 1015 | 1 1016 | 1017 | 1018 | R 1019 | 1020 | 1021 | 1 1022 | 1023 | 1024 | 2 1025 | 1026 | 1027 | 3 1028 | 1029 | 1030 | R 1031 | 1032 | 1033 | 1 1034 | 1035 | 1036 | 2 1037 | 1038 | 1039 | R 1040 | 1041 | 1042 | 1 1043 | 1044 | 1045 | R 1046 | 1047 | 1048 | 1 1049 | 1050 | 1051 | R 1052 | 1053 | 1054 | 1 1055 | 1056 | 1057 | 2 1058 | 1059 | 1060 | R 1061 | 1062 | 1063 | 1 1064 | 1065 | 1066 | 2 1067 | 1068 | 1069 | R 1070 | 1071 | 1072 | 1 1073 | 1074 | 1075 | R 1076 | 1077 | 1078 | 1 1079 | 1080 | 1081 | R 1082 | 1083 | 1084 | 1 1085 | 1086 | 1087 | R 1088 | 1089 | 1090 | 1 1091 | 1092 | 1093 | R 1094 | 1095 | 1096 | 1 1097 | 1098 | 1099 | 2 1100 | 1101 | 1102 | R 1103 | 1104 | 1105 | 1 1106 | 1107 | 1108 | 2 1109 | 1110 | 1111 | R 1112 | 1113 | 1114 | 1 1115 | 1116 | 1117 | R 1118 | 1119 | 1120 | 1 1121 | 1122 | 1123 | 2 1124 | 1125 | 1126 | R 1127 | 1128 | 1129 | R 1130 | 1131 | 1132 | 1 1133 | 1134 | 1135 | R 1136 | 1137 | 1138 | 1 1139 | 1140 | 1141 | R 1142 | 1143 | 1144 | R 1145 | 1146 | 1147 | 1 1148 | 1149 | 1150 | R 1151 | 1152 | 1153 | 1 1154 | 1155 | 1156 | 2 1157 | 1158 | 1159 | R 1160 | 1161 | 1162 | 1 1163 | 1164 | 1165 | R 1166 | 1167 | 1168 | 1 1169 | 1170 | 1171 | 2 1172 | 1173 | 1174 | R 1175 | 1176 | 1177 | 1 1178 | 1179 | 1180 | R 1181 | 1182 | 1183 | 1 1184 | 1185 | 1186 | 2 1187 | 1188 | 1189 | R 1190 | 1191 | 1192 | 1 1193 | 1194 | 1195 | R 1196 | 1197 | 1198 | 1 1199 | 1200 | 1201 | R 1202 | 1203 | 1204 | 1 1205 | 1206 | 1207 | R 1208 | 1209 | 1210 | 1 1211 | 1212 | 1213 | 2 1214 | 1215 | 1216 | R 1217 | 1218 | 1219 | 1 1220 | 1221 | 1222 | 2 1223 | 1224 | 1225 | R 1226 | 1227 | 1228 | 1 1229 | 1230 | 1231 | 2 1232 | 1233 | 1234 | R 1235 | 1236 | 1237 | R 1238 | 1239 | 1240 | R 1241 | 1242 | 1243 | 1 1244 | 1245 | 1246 | 2 1247 | 1248 | 1249 | R 1250 | 1251 | 1252 | 1 1253 | 1254 | 1255 | 2 1256 | 1257 | 1258 | R 1259 | 1260 | 1261 | R 1262 | 1263 | 1264 | 1 1265 | 1266 | 1267 | R 1268 | 1269 | 1270 | 1 1271 | 1272 | 1273 | R 1274 | 1275 | 1276 | 1 1277 | 1278 | 1279 | R 1280 | 1281 | 1282 | R 1283 | 1284 | 1285 | 1 1286 | 1287 | 1288 | R 1289 | 1290 | 1291 | R 1292 | 1293 | 1294 | R 1295 | 1296 | 1297 | 1 1298 | 1299 | 1300 | 2 1301 | 1302 | 1303 | 3 1304 | 1305 | 1306 | R 1307 | 1308 | 1309 | 1 1310 | 1311 | 1312 | 2 1313 | 1314 | 1315 | R 1316 | 1317 | 1318 | 1 1319 | 1320 | 1321 | R 1322 | 1323 | 1324 | 1 1325 | 1326 | 1327 | 2 1328 | 1329 | 1330 | R 1331 | 1332 | 1333 | 1 1334 | 1335 | 1336 | 2 1337 | 1338 | 1339 | R 1340 | 1341 | 1342 | R 1343 | 1344 | 1345 | R 1346 | 1347 | 1348 | 1 1349 | 1350 | 1351 | R 1352 | 1353 | 1354 | 1 1355 | 1356 | 1357 | 2 1358 | 1359 | 1360 | R 1361 | 1362 | 1363 | 1 1364 | 1365 | 1366 | 2 1367 | 1368 | 1369 | R 1370 | 1371 | 1372 | 1 1373 | 1374 | 1375 | R 1376 | 1377 | 1378 | 1 1379 | 1380 | 1381 | R 1382 | 1383 | 1384 | 1 1385 | 1386 | 1387 | R 1388 | 1389 | 1390 | R 1391 | 1392 | 1393 | 1 1394 | 1395 | 1396 | R 1397 | 1398 | 1399 | 1 1400 | 1401 | 1402 | R 1403 | 1404 | 1405 | 1 1406 | 1407 | 1408 | 2 1409 | 1410 | 1411 | R 1412 | 1413 | 1414 | R 1415 | 1416 | 1417 | R 1418 | 1419 | 1420 | 1 1421 | 1422 | 1423 | R 1424 | 1425 | 1426 | 1 1427 | 1428 | 1429 | R 1430 | 1431 | 1432 | 1 1433 | 1434 | 1435 | R 1436 | 1437 | 1438 | 1 1439 | 1440 | 1441 | 2 1442 | 1443 | 1444 | R 1445 | 1446 | 1447 | R 1448 | 1449 | 1450 | 1 1451 | 1452 | 1453 | 2 1454 | 1455 | 1456 | R 1457 | 1458 | 1459 | 1 1460 | 1461 | 1462 | 2 1463 | 1464 | 1465 | 3 1466 | 1467 | 1468 | R 1469 | 1470 | 1471 | 1 1472 | 1473 | 1474 | 2 1475 | 1476 | 1477 | 3 1478 | 1479 | 1480 | R 1481 | 1482 | 1483 | 1 1484 | 1485 | 1486 | R 1487 | 1488 | 1489 | 1 1490 | 1491 | 1492 | R 1493 | 1494 | 1495 | 1 1496 | 1497 | 1498 | R 1499 | 1500 | 1501 | 1 1502 | 1503 | 1504 | R 1505 | 1506 | 1507 | R 1508 | 1509 | 1510 | 1 1511 | 1512 | 1513 | 2 1514 | 1515 | 1516 | R 1517 | 1518 | 1519 | 1 1520 | 1521 | 1522 | R 1523 | 1524 | 1525 | R 1526 | 1527 | 1528 | 1 1529 | 1530 | 1531 | 2 1532 | 1533 | 1534 | R 1535 | 1536 | 1537 | 1 1538 | 1539 | 1540 | R 1541 | 1542 | 1543 | 1 1544 | 1545 | 1546 | R 1547 | 1548 | 1549 | 1 1550 | 1551 | 1552 | 2 1553 | 1554 | 1555 | R 1556 | 1557 | 1558 | 1 1559 | 1560 | 1561 | R 1562 | 1563 | 1564 | R 1565 | 1566 | 1567 | 1 1568 | 1569 | 1570 | R 1571 | 1572 | 1573 | 1 1574 | 1575 | 1576 | R 1577 | 1578 | 1579 | 1 1580 | 1581 | 1582 | R 1583 | 1584 | 1585 | 1 1586 | 1587 | 1588 | R 1589 | 1590 | 1591 | 1 1592 | 1593 | 1594 |
1595 |
1596 |
1597 |
1598 |
1599 |
1600 |
1601 |
1602 |
1603 |
1604 |
1605 |
1606 | 1 1607 |
1608 | 1609 | 1 1610 |
1611 | 1612 | 1 1613 | integer|0s 1614 | 1 1615 | 1 1616 | 1617 | 1618 | varchar(225)|0s 1619 | 1 1620 | 2 1621 | 1622 | 1623 | varchar(100)|0s 1624 | 1 1625 | 3 1626 | 1627 | 1628 | id 1629 | 1 1630 | 1631 | 1632 | 1 1633 | integer|0s 1634 | 1 1635 | 1 1636 | 1637 | 1638 | varchar(25)|0s 1639 | 1 1640 | 2 1641 | 1642 | 1643 | varchar(100)|0s 1644 | 1 1645 | 3 1646 | 1647 | 1648 | id 1649 | 1 1650 | 1651 | 1652 | 1 1653 | integer|0s 1654 | 1 1655 | 1 1656 | 1657 | 1658 | varchar(150)|0s 1659 | 1 1660 | 2 1661 | 1662 | 1663 | name 1664 | 1 1665 | 1 1666 | 1667 | 1668 | id 1669 | 1 1670 | 1671 | 1672 | name 1673 | sqlite_autoindex_auth_group_1 1674 | 1675 | 1676 | 1 1677 | integer|0s 1678 | 1 1679 | 1 1680 | 1681 | 1682 | integer|0s 1683 | 1 1684 | 2 1685 | 1686 | 1687 | integer|0s 1688 | 1 1689 | 3 1690 | 1691 | 1692 | group_id 1693 | 1 1694 | 1 1695 | id 1696 | auth_group 1697 | 1698 | 1699 | permission_id 1700 | 1 1701 | 1 1702 | id 1703 | auth_permission 1704 | 1705 | 1706 | group_id 1707 | permission_id 1708 | 1 1709 | 1710 | 1711 | group_id 1712 | 1713 | 1714 | permission_id 1715 | 1716 | 1717 | id 1718 | 1 1719 | 1720 | 1721 | 1 1722 | integer|0s 1723 | 1 1724 | 1 1725 | 1726 | 1727 | integer|0s 1728 | 1 1729 | 2 1730 | 1731 | 1732 | varchar(100)|0s 1733 | 1 1734 | 3 1735 | 1736 | 1737 | varchar(255)|0s 1738 | 1 1739 | 4 1740 | 1741 | 1742 | content_type_id 1743 | 1 1744 | 1 1745 | id 1746 | django_content_type 1747 | 1748 | 1749 | content_type_id 1750 | codename 1751 | 1 1752 | 1753 | 1754 | content_type_id 1755 | 1756 | 1757 | id 1758 | 1 1759 | 1760 | 1761 | 1 1762 | integer|0s 1763 | 1 1764 | 1 1765 | 1766 | 1767 | varchar(128)|0s 1768 | 1 1769 | 2 1770 | 1771 | 1772 | datetime|0s 1773 | 3 1774 | 1775 | 1776 | bool|0s 1777 | 1 1778 | 4 1779 | 1780 | 1781 | varchar(150)|0s 1782 | 1 1783 | 5 1784 | 1785 | 1786 | varchar(150)|0s 1787 | 1 1788 | 6 1789 | 1790 | 1791 | varchar(254)|0s 1792 | 1 1793 | 7 1794 | 1795 | 1796 | bool|0s 1797 | 1 1798 | 8 1799 | 1800 | 1801 | bool|0s 1802 | 1 1803 | 9 1804 | 1805 | 1806 | datetime|0s 1807 | 1 1808 | 10 1809 | 1810 | 1811 | varchar(150)|0s 1812 | 1 1813 | 11 1814 | 1815 | 1816 | username 1817 | 1 1818 | 1 1819 | 1820 | 1821 | id 1822 | 1 1823 | 1824 | 1825 | username 1826 | sqlite_autoindex_auth_user_1 1827 | 1828 | 1829 | 1 1830 | integer|0s 1831 | 1 1832 | 1 1833 | 1834 | 1835 | integer|0s 1836 | 1 1837 | 2 1838 | 1839 | 1840 | integer|0s 1841 | 1 1842 | 3 1843 | 1844 | 1845 | user_id 1846 | 1 1847 | 1 1848 | id 1849 | auth_user 1850 | 1851 | 1852 | group_id 1853 | 1 1854 | 1 1855 | id 1856 | auth_group 1857 | 1858 | 1859 | user_id 1860 | group_id 1861 | 1 1862 | 1863 | 1864 | user_id 1865 | 1866 | 1867 | group_id 1868 | 1869 | 1870 | id 1871 | 1 1872 | 1873 | 1874 | 1 1875 | integer|0s 1876 | 1 1877 | 1 1878 | 1879 | 1880 | integer|0s 1881 | 1 1882 | 2 1883 | 1884 | 1885 | integer|0s 1886 | 1 1887 | 3 1888 | 1889 | 1890 | user_id 1891 | 1 1892 | 1 1893 | id 1894 | auth_user 1895 | 1896 | 1897 | permission_id 1898 | 1 1899 | 1 1900 | id 1901 | auth_permission 1902 | 1903 | 1904 | user_id 1905 | permission_id 1906 | 1 1907 | 1908 | 1909 | user_id 1910 | 1911 | 1912 | permission_id 1913 | 1914 | 1915 | id 1916 | 1 1917 | 1918 | 1919 | "action_flag" >= 0 1920 | 1921 | 1922 | 1 1923 | integer|0s 1924 | 1 1925 | 1 1926 | 1927 | 1928 | text|0s 1929 | 2 1930 | 1931 | 1932 | varchar(200)|0s 1933 | 1 1934 | 3 1935 | 1936 | 1937 | smallint unsigned|0s 1938 | 1 1939 | 4 1940 | 1941 | 1942 | text|0s 1943 | 1 1944 | 5 1945 | 1946 | 1947 | integer|0s 1948 | 6 1949 | 1950 | 1951 | integer|0s 1952 | 1 1953 | 7 1954 | 1955 | 1956 | datetime|0s 1957 | 1 1958 | 8 1959 | 1960 | 1961 | content_type_id 1962 | 1 1963 | 1 1964 | id 1965 | django_content_type 1966 | 1967 | 1968 | user_id 1969 | 1 1970 | 1 1971 | id 1972 | auth_user 1973 | 1974 | 1975 | content_type_id 1976 | 1977 | 1978 | user_id 1979 | 1980 | 1981 | id 1982 | 1 1983 | 1984 | 1985 | 1 1986 | integer|0s 1987 | 1 1988 | 1 1989 | 1990 | 1991 | varchar(100)|0s 1992 | 1 1993 | 2 1994 | 1995 | 1996 | varchar(100)|0s 1997 | 1 1998 | 3 1999 | 2000 | 2001 | app_label 2002 | model 2003 | 1 2004 | 2005 | 2006 | id 2007 | 1 2008 | 2009 | 2010 | 1 2011 | integer|0s 2012 | 1 2013 | 1 2014 | 2015 | 2016 | varchar(255)|0s 2017 | 1 2018 | 2 2019 | 2020 | 2021 | varchar(255)|0s 2022 | 1 2023 | 3 2024 | 2025 | 2026 | datetime|0s 2027 | 1 2028 | 4 2029 | 2030 | 2031 | id 2032 | 1 2033 | 2034 | 2035 | varchar(40)|0s 2036 | 1 2037 | 1 2038 | 2039 | 2040 | text|0s 2041 | 1 2042 | 2 2043 | 2044 | 2045 | datetime|0s 2046 | 1 2047 | 3 2048 | 2049 | 2050 | session_key 2051 | 1 2052 | 1 2053 | 2054 | 2055 | expire_date 2056 | 2057 | 2058 | session_key 2059 | 1 2060 | sqlite_autoindex_django_session_1 2061 | 2062 | 2063 | TEXT|0s 2064 | 1 2065 | 2066 | 2067 | TEXT|0s 2068 | 2 2069 | 2070 | 2071 | TEXT|0s 2072 | 3 2073 | 2074 | 2075 | INT|0s 2076 | 4 2077 | 2078 | 2079 | TEXT|0s 2080 | 5 2081 | 2082 | 2083 | 1 2084 | 2085 | 2086 | 2 2087 | 2088 |
2089 |
--------------------------------------------------------------------------------