Code Monkey home page Code Monkey logo

db-hack's Introduction

Скрипты для правки базы данных электронного дневника

Репозиторий электронного дневника

Как пользоваться

Переместите файл schoolkid_script.py в корневую директорию проекта Django, рядом с manage.py. Далее запустите скрипт из командной строки c указанием имени ученика и с имеющимися подкомандами:

python schoolkid_script.py --help
usage: schoolkid_script.py [-h] child_name {new-comm,rm-chast,fix-marks} ...

The hack script for repo: https://github.com/devmanorg/e-diary

positional arguments:
  child_name            schoolkid name (default: Фролов Иван)

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  subcommands for fix schollkid diary

  {new-comm,rm-chast,fix-marks}
                        function description
    new-comm            create commendation
    rm-chast            remove chastisements
    fix-marks           remove bad marks and replace them by 5

Подкоманда new-comm

Создает новую похвалу для указанного ученика. Дата похвалы совпадет с датой последнего указанного по названию (-lesson) урока. Похвала выбирается из списка через random.choice.

python schoolkid_script.py '' new-comm --help
usage: schoolkid_script.py child_name new-comm [-h] [-lesson LESSON_NAME]
                                    
optional arguments:
  -h, --help           show this help message and exit
  -lesson LESSON_NAME  lesson name

Подкоманда rm-chast

Удаляет замечания для указанного ученика.

python schoolkid_script.py '' rm-chast --help
usage: schoolkid_script.py child_name rm-chast [-h]

optional arguments:
  -h, --help         show this help message and exit

Подкоманда fix_marks

Правит плохие оценки, двойки или тройки на пятерки для указанного ученика.

python schoolkid_script.py '' fix-marks --help
usage: schoolkid_script.py child_name fix-marks [-h]

optional arguments:
  -h, --help         show this help message and exit

db-hack's People

Contributors

manchos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.