Skip to content

Commit

Permalink
add new pngs, fix echarts show bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbxmw committed Apr 19, 2019
1 parent e8ab393 commit 0b51558
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
Binary file added doc/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/today.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion hafweb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

MAIN_VERSION = 0
SUB_VERSION = 1
FIX_VERSION = 7
FIX_VERSION = 8

VERSION = f"{MAIN_VERSION}.{SUB_VERSION}.{FIX_VERSION}"
6 changes: 6 additions & 0 deletions hafweb/resource/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ <h2> HTML URLS </h2>
<td><a href="/index">/index</a></td>
<td>show all test results</td>
</tr>
<tr>
<td>4</td>
<td>/today</td>
<td><a href="/today">/today</a></td>
<td>get haf's all tests of today</td>
</tr>
<tr>
<td>3</td>
<td>/test?test_id=1</td>
Expand Down
2 changes: 1 addition & 1 deletion hafweb/resource/today.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<div class="jumbotron well" style="text-aligin:center">
<ul>
<li> <a></a>
<div id="echart-map" style="height:800px;width:100%">
<div id="echart-map" style="height:{{all_count*70}}px;width:100%">
<script type="text/javascript">
var width = $("width_for_echart").width();
var myChart = echarts.init(document.getElementById('echart-map'));
Expand Down
4 changes: 3 additions & 1 deletion hafweb/view/view_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,18 @@ def g_main_today(cls, test_filter) -> str:
main_today = Controller.get_main_today()
main_all = {"passed": 0, "failed": 0, "error": 0, "skip": 0, "all": 0}
mains = ViewMain.split_main(main_today, test_filter)
all_count = 0
for key in mains.keys():
tests = mains.get(key)
for mkey in tests.keys():
all_count += 1
m = tests.get(mkey)
main_all["passed"] += m.passed
main_all["failed"] += m.failed
main_all["error"] += m.error
main_all["skip"] += m.skip
main_all["all"] = main_all["passed"] + main_all["failed"] + main_all["error"] + main_all["skip"]
return index.render(today=datetime.today().date(),main=main_today, all=main_all, hafversion=PLATFORM_VERSION, testname="TODAY", mains=mains)
return index.render(today=datetime.today().date(),main=main_today, all=main_all, hafversion=PLATFORM_VERSION, testname="TODAY", mains=mains, all_count=all_count)

@classmethod
def g_test(cls, test_id: int) -> str:
Expand Down

0 comments on commit 0b51558

Please sign in to comment.