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 typing import List | |
from skpy import SkypeUtils, SkypeConnection, Skype as OriginalSkype | |
from skpy.user import SkypeContacts, SkypeUser as OriginalSkypeUser | |
@SkypeUtils.initAttrs | |
class SkypeUser(OriginalSkypeUser): | |
attrs = OriginalSkypeUser.attrs + ('mutual_friend_count',) | |
defaults = dict(OriginalSkypeUser.defaults, mutual_friend_count=0) |
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 json | |
from django.contrib import admin | |
from django.contrib.admin import ModelAdmin | |
from django.contrib.contenttypes.fields import GenericForeignKey | |
from django.db.models import Q, ForeignKey, ManyToManyField | |
from django.utils.html import mark_safe | |
from nested_admin.nested import NestedTabularInline | |
from communications.forms import MessageAdminForm |
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
--- | |
version: "2" | |
services: | |
qbittorrent: | |
image: linuxserver/qbittorrent:4.5.0 | |
container_name: qbittorrent | |
mem_limit: 3000m | |
mem_reservation: 128M | |
depends_on: | |
- openvpn |
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
@pytest.fixture | |
def generate_keys(self, key_factory): | |
product_obj = Product.objects.get(pk=self.product_in_order_pk) | |
return lambda **kwargs: key_factory.create_batch(self.product_in_order_quantity, product=product_obj, **kwargs) | |
@pytest.fixture | |
def created_default_keys(self, generate_keys, internal_order): | |
return generate_keys(from_product_in_order__internal_order=internal_order, | |
from_product_in_order__internal_order__currency=Currency.objects.get(name="USD")) |
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
@shared_task | |
def get_provider_api_stocks(api_key, url_constructor, deserialize_constructor): | |
return True | |
def get_one_game_detail_stock(): | |
return True | |
def get_codes_from_order(): |
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 webpack = require('webpack'); | |
const path = require('path'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const BundleTracker = require('webpack-bundle-tracker'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
module.exports = { | |
entry: { | |
home: './frontend_src/js/home.js', |