-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApplicationNotes.txt
32 lines (27 loc) · 1.07 KB
/
ApplicationNotes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class TimeKeeperNew(Resource):
def post(self):
json = request.json
print(json)
category =json['TimeCategory']
data = {
"UserId":json['userid'],
"TimeCategory": category,
"PointsEarned": GetPointsByCategory(category),
"Type": "timekeeper"
}
uid = GetUniqueTimeStamp()
ack = es.index(index='meiva_index', doc_type='post', id=uid ,body=data)
return ack
Points:
Earned per checkbox on the daily review, +6 on submission (~70+6 points per sheet)
Earned each category appropriately +1, 0, -1, hourly +2
Hourly -1 (number of hours since the first record available, purge older to reset time)
Record of points sent on daily submission to a new index
rankfiler sum
timekeep sum
hours since beginning
on rankfiler submit current data point for points +6
modify timekeeper hourly submission to +1
create a function for total calculated amount
(timekeeper_sum + rankfiler_sum) - hours_from_start
Post how long ago the most recent was submitted for both entries