forked from marcin-osowski/igc_lib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
44 lines (29 loc) · 1.01 KB
/
main.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
import main_heatmap
import main_tracemap
def launch_tracemap(request):
main_tracemap.main(request)
def launch_heatmap(request):
main_heatmap.main(request)
def launch_tracemap_catchup(request):
main_tracemap.main_catchup(request)
def launch_tracemap_catchup_year(request):
main_tracemap.main_catchup_year(request)
def launch_heatmap_catchup(request):
main_heatmap.main_catchup(request)
def launch_tracemap_alternative_source(request):
main_tracemap.main_alternative_source(request)
if __name__ == "__main__":
try:
Request = type('Request', (object,), {})
request = Request()
request.args = {}
# request.args = {"source": "dev"}
# request.args = {"targetDate": "2021_09_28"}
# res = launch_heatmap(request)
# res = launch_tracemap_catchup(request)
# res = launch_tracemap_catchup_year(request)
res = launch_tracemap(request)
print(res)
except SystemExit as e:
if not e is None:
print(e)