Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit e38add4

Browse files
authored
Merge pull request #60 from PhlexPlexico/development
Development
2 parents a33c360 + e1dd23b commit e38add4

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# get5-web BETA
1+
# get5-web
22

3-
Development
4-
[![Build Status](https://travis-ci.org/PhlexPlexico/get5-web.svg?branch=development)](https://travis-ci.org/PhlexPlexico/get5-web)
3+
Development: [![Build Status](https://travis-ci.org/PhlexPlexico/get5-web.svg?branch=development)](https://travis-ci.org/PhlexPlexico/get5-web)
54

6-
Master
7-
[![Build Status](https://travis-ci.org/PhlexPlexico/get5-web.svg?branch=master)](https://travis-ci.org/PhlexPlexico/get5-web)
5+
Master: [![Build Status](https://travis-ci.org/PhlexPlexico/get5-web.svg?branch=master)](https://travis-ci.org/PhlexPlexico/get5-web)
6+
7+
Total Downloads: [![GitHub Downloads](https://img.shields.io/github/downloads/phlexplexico/get5-web/total.svg?label=Total%20Downloads)](https://github.com/phlexplexico/get5-web/releases/latest)
88

99
**Status: Third Party Supported**
1010

1111
This is an **experimental** web panel meant to be used in conjunction with the [get5](https://github.com/splewis/get5) CS:GO server plugin. It provides a more convenient way of managing matches and match servers.
1212

1313
This fork of get5-web will probably be updated as more features are required for my use case (running a small league). Bugs will be fixed as I come across them, or based on priority (i.e. does it break everything for me). If you have any bugs you'd like to report, please create an issue. I'll try my best to help solve the issue, but I am still new to learning flask as well.
1414

15-
**WARNING**: THIS BUILD OF THE WEB-PANEL IS UNDER DEVELOPMENT AND IS STARTING TO USE MODIFIED GET5 MATERIAL, SUCH AS THE API_STATS PLUGIN. IF YOU HAVE ANY ISSUES WITH THE VETO PROCESS, OR ANY NEW IMPLEMENTATIONS, PLEASE REPORT IT HERE.
15+
**WARNING**: THIS BUILD OF THE WEB-PANEL IS UNDER DEVELOPMENT AND IS STARTING TO USE MODIFIED GET5 MATERIAL, SUCH AS THE API_STATS PLUGIN. IF YOU HAVE ANY ISSUES WITH THE VETO PROCESS, OR ANY NEW IMPLEMENTATIONS, PLEASE REPORT IT HERE. IF THERE ARE ANY PROBLEMS YOU HAVE USING THIS WEBPANEL WITH GET5, REPORT THEM HERE AS IT IS MOST LIKELY A PROBLEM WITH THIS, AND NOT GET5 ITSELF.
1616

1717
## How to use it:
1818

Diff for: get5/stats.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def get_user_stats(steamid):
1414
all_stats = PlayerStats.query.filter_by(steam_id=steamid)
1515
if all_stats.count() == 0:
1616
abort(404)
17+
steam_url = all_stats.first().get_steam_url()
1718
kills=sum(c.kills for c in all_stats)
1819
deaths=sum(c.deaths for c in all_stats)
1920
kdr=mean(c.get_kdr() for c in all_stats)
@@ -39,4 +40,4 @@ def get_user_stats(steamid):
3940
user_1v1=v1, user_1v2=v2, user_1v3=v3,
4041
user_1v4=v4, user_1v5=v5, user_rating=hltvrating,
4142
user_headshot=hsp, user_totalrounds=total_rounds, user_fbAssists=flashbang_assists,
42-
user_name=name)
43+
user_name=name, steam_url=steam_url)

Diff for: get5/templates/match.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% for player in map_stats.player_stats.filter_by(team_id=team.id)|sort(attribute='kills', reverse=True) %}
2020
{% if player.roundsplayed > 0 %}
2121
<tr>
22-
<td> <a href="{{player.get_steam_url()}}"> {{ player.get_player_name() }} </a></td>
22+
<td> <a href="/stats/{{player.steam_id}}"> {{ player.get_player_name() }} </a></td>
2323
<td class="text-center"> {{ player.kills }} </td>
2424
<td class="text-center"> {{ player.deaths }} </td>
2525
<td class="text-center"> {{ player.assists }} </td>

Diff for: get5/templates/stats.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
<div id="content">
7-
<h1>Player Stats for {{ user_name }}</h1>
7+
<h1>Player Stats for <a href="{{ steam_url }}">{{ user_name }}</a></h1>
88
<div class="container">
99
<table class="table table-hover">
1010
<thead>
@@ -13,7 +13,7 @@ <h1>Player Stats for {{ user_name }}</h1>
1313
<th class="text-center">Deaths</th>
1414
<th class="text-center">Assists</th>
1515
<th class="text-center"><acronym title="Flashbang Assists">FBA</acronym></th>
16-
<th class="text-center"><acronym title="Kill Death Ratio">KDR</acronym></th>
16+
<th class="text-center"><acronym title="Kill/Death Average">KDA</acronym></th>
1717
<th class="text-center"><acronym title="Average damage per round">ADR</acronym></th>
1818
<th class="text-center">3K</th>
1919
<th class="text-center">4K</th>
@@ -23,7 +23,7 @@ <h1>Player Stats for {{ user_name }}</h1>
2323
<th class="text-center">1v3</th>
2424
<th class="text-center">1v4</th>
2525
<th class="text-center">1v5</th>
26-
<th class="text-center"><acronym title="Headshot percentage">HSP</acronym></th>
26+
<th class="text-center"><acronym title="Average Headshot Percentage">AHSP</acronym></th>
2727
<th class="text-center"><acronym title="Total Rounds Played">TRP</acronym></th>
2828
<th class="text-center">Rating</th>
2929
</tr>

0 commit comments

Comments
 (0)