|
|
@ -556,20 +556,21 @@ def get_test_routes(app): |
|
|
|
if fr is None: |
|
|
|
if fr is None: |
|
|
|
abort(404) |
|
|
|
abort(404) |
|
|
|
fmap = fr.Departments(style=choice(list(styles.values()))) |
|
|
|
fmap = fr.Departments(style=choice(list(styles.values()))) |
|
|
|
for i in range(10): |
|
|
|
fmap.add('', [(69, 2), (42, 7), (38, 3), (26, 0)]) |
|
|
|
fmap.add('s%d' % i, [ |
|
|
|
# for i in range(10): |
|
|
|
(choice(list(fr.DEPARTMENTS.keys())), randint(0, 100)) |
|
|
|
# fmap.add('s%d' % i, [ |
|
|
|
for _ in range(randint(1, 5))]) |
|
|
|
# (choice(list(fr.DEPARTMENTS.keys())), randint(0, 100)) |
|
|
|
|
|
|
|
# for _ in range(randint(1, 5))]) |
|
|
|
fmap.add('links', [{ |
|
|
|
|
|
|
|
'value': (69, 10), |
|
|
|
# fmap.add('links', [{ |
|
|
|
'label': '\o/', |
|
|
|
# 'value': (69, 10), |
|
|
|
'xlink': 'http://google.com?q=69' |
|
|
|
# 'label': '\o/', |
|
|
|
}, { |
|
|
|
# 'xlink': 'http://google.com?q=69' |
|
|
|
'value': ('42', 20), |
|
|
|
# }, { |
|
|
|
'label': 'Y', |
|
|
|
# 'value': ('42', 20), |
|
|
|
}]) |
|
|
|
# 'label': 'Y', |
|
|
|
fmap.add('6th', [3, 5, 34, 12]) |
|
|
|
# }]) |
|
|
|
|
|
|
|
# fmap.add('6th', [3, 5, 34, 12]) |
|
|
|
fmap.title = 'French map' |
|
|
|
fmap.title = 'French map' |
|
|
|
return fmap.render_response() |
|
|
|
return fmap.render_response() |
|
|
|
|
|
|
|
|
|
|
@ -690,8 +691,8 @@ def get_test_routes(app): |
|
|
|
'lolroflmao', |
|
|
|
'lolroflmao', |
|
|
|
'12345678901234567890' |
|
|
|
'12345678901234567890' |
|
|
|
] |
|
|
|
] |
|
|
|
# radar.x_label_rotation = 35 |
|
|
|
radar.x_label_rotation = 35 |
|
|
|
# radar.y_label_rotation = 35 |
|
|
|
radar.y_label_rotation = 35 |
|
|
|
radar.y_labels = [{ |
|
|
|
radar.y_labels = [{ |
|
|
|
'label': '500', |
|
|
|
'label': '500', |
|
|
|
'value': 10 |
|
|
|
'value': 10 |
|
|
|