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

Commit 3b954c5

Browse files
version 4.0.0
1 parent 4469d2b commit 3b954c5

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

js/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Main = () => {
3434
<Grid item><Stat title='Maps' stat={data.stats.map_count.toLocaleString()} /></Grid>
3535
</Grid>
3636
<Grid container>
37-
<Grid item xs={12}>
37+
<Grid item xs={4}>
3838
<Card>
3939
<CardContent>
4040
<Typography variant='h5'>Match Additions</Typography>

js/src/Reports.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import Typography from '@material-ui/core/Typography'
1717

1818
import ReactCountryFlag from 'react-country-flag'
1919
import {format, subMonths} from 'date-fns'
20-
import humanizeDuration from 'humanize-duration'
2120

2221
import AppLink from './util/AppLink'
2322
import DataQuery from './util/DataQuery'
@@ -72,7 +71,7 @@ const LongestMatchesSection = ({data}) => {
7271
<TableCell>{index + 1}</TableCell>
7372
<TableCell><AppLink path={['match', match.id]} text={getMatchTitle(match, false)} /></TableCell>
7473
<TableCell> <AppLink path={['maps', match.map_name]} text={match.map_name} /></TableCell>
75-
<TableCell>{humanizeDuration(match.duration_secs * 1000)}</TableCell>
74+
<TableCell>{match.duration}</TableCell>
7675
</TableRow>
7776
)}
7877
</TableBody>

js/src/Search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const GeneralSection = ({data}) => {
3434
<OptionInput label='Mirror' table='matches' name='mirror' data={data.search_options.general.mirror} />
3535
<OptionInput label='Rated' table='matches' name='rated' data={data.search_options.general.rated} />
3636
<OptionInput label='ZR' table='matches' name='rms_zr' data={data.search_options.general.rms_zr} />
37-
<OptionInput label='Playback' table='matches' name='has_playback' data={data.search_options.general.playback} />
37+
<OptionInput label='Extended Stats' table='matches' name='has_playback' data={data.search_options.general.playback} />
3838
<OptionInput label='Event' table='matches' name='event_id' data={data.search_options.general.events} />
3939
<OptionInput label='Tournament' table='matches' name='tournament_id' data={data.search_options.general.tournaments} />
4040
<DateInput label='Played' table='matches' name='played' />

js/src/graphql/Report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ query Report($year: Int!, $month: Int!) {
9494
diplomacy_type
9595
team_size
9696
map_name
97-
duration_secs
97+
duration
9898
}
9999
}
100100
}

js/src/match/Map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Map = ({match}) => {
2525
<TableRow>
2626
<TableCell>Size</TableCell>
2727
{match.map_events && <TableCell>Events</TableCell>}
28-
<TableCell>Seed</TableCell>
28+
{match.rms_seed && <TableCell>Seed</TableCell>}
2929
<TableCell align='center'>Custom</TableCell>
3030
<TableCell align='center'>Fixed Positions</TableCell>
3131
<TableCell align='center'>Tech Effects</TableCell>
@@ -39,7 +39,7 @@ const Map = ({match}) => {
3939
<AppLink key={event.id} path={['events', event.id]} text={event.name} />
4040
])}
4141
</TableCell>}
42-
<TableCell><code>{match.rms_seed}</code></TableCell>
42+
{match.rms_seed && <TableCell><code>{match.rms_seed}</code></TableCell>}
4343
<TableCell align='center'><BoolIcon value={match.rms_custom} /></TableCell>
4444
<TableCell align='center'><BoolIcon value={match.direct_placement} /></TableCell>
4545
<TableCell align='center'><BoolIcon value={match.effect_quantity} /></TableCell>

python/aocrecs/logic/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def build_query(params, offset, limit):
5151

5252
query = append_flags(query, params, args)
5353

54-
query_template = "select distinct matches.id {} order by matches.id desc limit {} offset {}"
54+
query_template = "select distinct matches.id, matches.played {} order by matches.played desc nulls last limit {} offset {}"
5555
return query_template.format(query, limit, offset), 'select count(distinct matches.id) {}'.format(query), args
5656

5757

python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='aocrecs',
6-
version='3.0.2',
6+
version='4.0.0',
77
description='aocrecs.com API.',
88
url='https://github.com/siegeengineers/aocrecs.com/',
99
license='MIT',
@@ -18,7 +18,7 @@
1818
'boto3==1.10.46',
1919
'coloredlogs==10.0',
2020
'databases==0.2.6',
21-
'mgzdb>=1.2.9',
21+
'mgzdb>=1.3.0',
2222
'networkx==2.4',
2323
'python-dateutil==2.8.1',
2424
'python-multipart==0.0.5',

0 commit comments

Comments
 (0)