Spaces:
Runtime error
Runtime error
[API] Add query from cache
Browse files- cfg/config.yml +0 -15
- config.py +21 -5
- hr_utils/entities.py +1 -0
cfg/config.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
TIME_FORMAT: "%H:%M"
|
2 |
-
|
3 |
-
WORKING_TIME:
|
4 |
-
TOTAL_WORKING_TIME: 480
|
5 |
-
MORNING_IN: "08:00"
|
6 |
-
MORNING_OUT: "12:00"
|
7 |
-
AFTERNOON_IN: "13:00"
|
8 |
-
AFTERNOON_OUT: "17:00"
|
9 |
-
ROUND_GAP: 15
|
10 |
-
|
11 |
-
LATE:
|
12 |
-
MORNING_IN: 30
|
13 |
-
AFTERNOON_IN: 30
|
14 |
-
MORNING_OUT: 0
|
15 |
-
AFTERNOON_OUT: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.py
CHANGED
@@ -1,6 +1,22 @@
|
|
1 |
-
from
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from dataclasses import dataclass
|
2 |
|
3 |
+
|
4 |
+
@dataclass
|
5 |
+
class CONFIG:
|
6 |
+
TIME_FORMAT = "%H:%M"
|
7 |
+
|
8 |
+
@dataclass
|
9 |
+
class WORKING_TIME:
|
10 |
+
TOTAL_WORKING_TIME = 480
|
11 |
+
MORNING_IN = "08:00"
|
12 |
+
MORNING_OUT = "12:00"
|
13 |
+
AFTERNOON_IN = "13:00"
|
14 |
+
AFTERNOON_OUT = "17:00"
|
15 |
+
ROUND_GAP = 15
|
16 |
+
|
17 |
+
@dataclass
|
18 |
+
class LATE:
|
19 |
+
MORNING_IN = 30
|
20 |
+
AFTERNOON_IN = 30
|
21 |
+
MORNING_OUT = 0
|
22 |
+
AFTERNOON_OUT = 0
|
hr_utils/entities.py
CHANGED
@@ -3,6 +3,7 @@ from typing import Dict, List
|
|
3 |
|
4 |
import pandas as pd
|
5 |
from dateutil.parser import parse
|
|
|
6 |
from type_alias import EARLY_MODE, LATE_MODE
|
7 |
|
8 |
|
|
|
3 |
|
4 |
import pandas as pd
|
5 |
from dateutil.parser import parse
|
6 |
+
|
7 |
from type_alias import EARLY_MODE, LATE_MODE
|
8 |
|
9 |
|