This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am muradddd on github. | |
* I am muradrustamzade (https://keybase.io/muradrustamzade) on keybase. | |
* I have a public key ASA_e4Xqu1Ji3y0RrR5o3gXGASA5a_pB8o08iFti6uKbvgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -t {CONTAINER} mysqldump -u {USER} --password={PASSWORD} {DATABASE} > {BACKUP_FILE_PATH} | |
docker exec -t db mysqldump -u root --password=yelobank YeloBankProjectDB > _backups/data.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias runserver="python manage.py runserver" | |
alias makemigrations="python manage.py makemigrations" | |
alias showmigrations="python manage.py showmigrations" | |
alias migrate="python manage.py migrate" | |
alias createsuperuser="python manage.py createsuperuser" | |
alias dump="python manage.py dumpdata --natural-foreign -e contenttypes -e auth.Permission -e admin.Logentry" | |
alias load="python manage.py loaddata" | |
alias shell="python manage.py shell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- bugfix | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unidecode import unidecode | |
def slugify(title): | |
symbol_mapping = ( | |
('ə', 'e'), | |
('ı', 'i'), | |
('ö', 'o'), | |
('ğ', 'g'), | |
('ü', 'u'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(getParams().category){ | |
// əgər şərt ödənirsə burda d-block etmək lazımdır `filterİcon`u | |
document.querySelector('.clear-filter-description a').href = window.location.origin + window.location.pathname | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@core.route('/create', methods=['GET', 'POST']) | |
@login_required | |
def create(): | |
form = BlogForm() | |
if request.method == 'POST' and form.validate_on_submit(): | |
f = form.image.data | |
file_path = save_file(f) | |
blog = Blog(title=form.title.data, description=form.description.data, image=file_path, user_id=current_user.id) | |
db.session.add(blog) | |
db.session.commit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row justify-content-center pagination"> | |
<div id="pagination" class="col-12 col-lg-9 justify-content-center pagination mr-auto"> | |
{% if is_paginated %} | |
{% if page_obj.has_previous %} | |
<a class="prev-page" | |
href="?page={{ page_obj.previous_page_number }}{% if request.GET.topic_search %}&topic_search={{ request.GET.topic_search }}{% elif request.GET.conversation_search %}&conversation_search={{ request.GET.conversation_search }}{% endif %}"></a> | |
{% endif %} | |
{% for page_number in page_range %} | |
{% if page_number == page_obj.number %} | |
<a class="active">{{ page_number }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {COMMENTS_API_URL} from './config.js'; | |
import {complaintDetailStaticPath, complaintsStaticPath} from './staticPaths.js'; | |
let commentsArr; | |
let commentsWrapper = document.querySelector('.comments-wrapper') | |
// REPORT COMMENT MODAL | |
const reportCommentModal = document.querySelector('section.report-comment-modal'); | |
const reportCommentModalCloseModalIcon = document.querySelector('section.report-comment-modal img.close-icon'); | |
const reportCommentModalCancelButton = document.querySelector('section.report-comment-modal > article > div > button'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SITE_URL = 'http://35.205.142.86'; | |
// COMPANIES/BRANDS | |
const COMPANY_CATEGORIES_API_URL = `${SITE_URL}/api/v1/companies/categories`; | |
const SEARCH_COMPANIES_BY_CATEGORIES_URL = `${COMPANY_CATEGORIES_API_URL}?title=`; | |
// REVIEWS/COMPLAINTS | |
const REVIEW_CATEGORIES_API_URL = `${SITE_URL}/api/v1/reviews/categories`; | |
const REVIEW_COMPANIES_API_URL = `${SITE_URL}/api/v1/reviews/companies`; | |
const REVIEW_KEYWORDS_API_URL = `${SITE_URL}/api/v1/reviews/keywords`; |
NewerOlder