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

Commit

Permalink
version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
happyleavesaoc committed Mar 16, 2020
1 parent 4469d2b commit 3b954c5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion js/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Main = () => {
<Grid item><Stat title='Maps' stat={data.stats.map_count.toLocaleString()} /></Grid>
</Grid>
<Grid container>
<Grid item xs={12}>
<Grid item xs={4}>
<Card>
<CardContent>
<Typography variant='h5'>Match Additions</Typography>
Expand Down
3 changes: 1 addition & 2 deletions js/src/Reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Typography from '@material-ui/core/Typography'

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

import AppLink from './util/AppLink'
import DataQuery from './util/DataQuery'
Expand Down Expand Up @@ -72,7 +71,7 @@ const LongestMatchesSection = ({data}) => {
<TableCell>{index + 1}</TableCell>
<TableCell><AppLink path={['match', match.id]} text={getMatchTitle(match, false)} /></TableCell>
<TableCell> <AppLink path={['maps', match.map_name]} text={match.map_name} /></TableCell>
<TableCell>{humanizeDuration(match.duration_secs * 1000)}</TableCell>
<TableCell>{match.duration}</TableCell>
</TableRow>
)}
</TableBody>
Expand Down
2 changes: 1 addition & 1 deletion js/src/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const GeneralSection = ({data}) => {
<OptionInput label='Mirror' table='matches' name='mirror' data={data.search_options.general.mirror} />
<OptionInput label='Rated' table='matches' name='rated' data={data.search_options.general.rated} />
<OptionInput label='ZR' table='matches' name='rms_zr' data={data.search_options.general.rms_zr} />
<OptionInput label='Playback' table='matches' name='has_playback' data={data.search_options.general.playback} />
<OptionInput label='Extended Stats' table='matches' name='has_playback' data={data.search_options.general.playback} />
<OptionInput label='Event' table='matches' name='event_id' data={data.search_options.general.events} />
<OptionInput label='Tournament' table='matches' name='tournament_id' data={data.search_options.general.tournaments} />
<DateInput label='Played' table='matches' name='played' />
Expand Down
2 changes: 1 addition & 1 deletion js/src/graphql/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ query Report($year: Int!, $month: Int!) {
diplomacy_type
team_size
map_name
duration_secs
duration
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/src/match/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Map = ({match}) => {
<TableRow>
<TableCell>Size</TableCell>
{match.map_events && <TableCell>Events</TableCell>}
<TableCell>Seed</TableCell>
{match.rms_seed && <TableCell>Seed</TableCell>}
<TableCell align='center'>Custom</TableCell>
<TableCell align='center'>Fixed Positions</TableCell>
<TableCell align='center'>Tech Effects</TableCell>
Expand All @@ -39,7 +39,7 @@ const Map = ({match}) => {
<AppLink key={event.id} path={['events', event.id]} text={event.name} />
])}
</TableCell>}
<TableCell><code>{match.rms_seed}</code></TableCell>
{match.rms_seed && <TableCell><code>{match.rms_seed}</code></TableCell>}
<TableCell align='center'><BoolIcon value={match.rms_custom} /></TableCell>
<TableCell align='center'><BoolIcon value={match.direct_placement} /></TableCell>
<TableCell align='center'><BoolIcon value={match.effect_quantity} /></TableCell>
Expand Down
2 changes: 1 addition & 1 deletion python/aocrecs/logic/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def build_query(params, offset, limit):

query = append_flags(query, params, args)

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


Expand Down
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='aocrecs',
version='3.0.2',
version='4.0.0',
description='aocrecs.com API.',
url='https://github.com/siegeengineers/aocrecs.com/',
license='MIT',
Expand All @@ -18,7 +18,7 @@
'boto3==1.10.46',
'coloredlogs==10.0',
'databases==0.2.6',
'mgzdb>=1.2.9',
'mgzdb>=1.3.0',
'networkx==2.4',
'python-dateutil==2.8.1',
'python-multipart==0.0.5',
Expand Down

0 comments on commit 3b954c5

Please sign in to comment.