-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathapp_data.py
49 lines (33 loc) · 1.2 KB
/
app_data.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import os, json
def get_bounties():
bounty = os.path.abspath("data-sets/bounty.json")
with open(bounty) as json_file:
return json.load(json_file)
def get_challenges():
challenge = os.path.abspath("data-sets/challenge.json")
with open(challenge) as json_file:
return json.load(json_file)
def get_users():
user = os.path.abspath("data-sets/user.json")
with open(user) as json_file:
return json.load(json_file)
def get_products():
user = os.path.abspath("data-sets/product.json")
with open(user) as json_file:
return json.load(json_file)
def get_bounty_delivery_attempt():
user = os.path.abspath("data-sets/bounty_delivery_attempt.json")
with open(user) as json_file:
return json.load(json_file)
def get_bounty_claims():
user = os.path.abspath("data-sets/bounty_claim.json")
with open(user) as json_file:
return json.load(json_file)
def get_skills():
user = os.path.abspath("data-sets/skill.json")
with open(user) as json_file:
return json.load(json_file)
def get_expertises():
user = os.path.abspath("data-sets/expertise.json")
with open(user) as json_file:
return json.load(json_file)