Completed
Push — master ( a1e8f3...b95acc )
by Oleksandr
02:23
created

Speedhack

Complexity

Total Complexity 0

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 19
ccs 5
cts 5
cp 1
1
# coding: utf-8
2
3 1
from schematics.models import Model
4 1
from schematics.types import IntType, FloatType, BooleanType
5
6
7 1
class Speedhack(Model):
8 1
    check_server_time_speed = BooleanType(
9
        default=True,
10
        required=True,
11
    )
12 1
    check_client_time_speed = BooleanType(
13
        default=False,
14
        required=True,
15
    )
16 1
    max_time_difference = FloatType(
17
        min_value=0.01,
18
        default=0.2,
19
        required=True,
20
    )
21 1
    max_time_difference_period = IntType(
22
        min_value=1,
23
        max_value=1000,
24
        default=17,
25
        required=True,
26
    )
27